Skip to content

Commit 5d380da

Browse files
authored
Merge pull request #428 from vfonic/patch-1
Docs: Convert version requirements into a table
2 parents 2cb0e7d + a78df3e commit 5d380da

File tree

1 file changed

+16
-122
lines changed

1 file changed

+16
-122
lines changed

README.md

Lines changed: 16 additions & 122 deletions
Original file line numberDiff line numberDiff line change
@@ -51,128 +51,21 @@ sudo apt-get install postgis postgresql-16-postgis-3
5151

5252
PostGIS is likely available as an optional package via your Postgresql installer. If not, refer to the installation guide.
5353

54-
Gemfile:
55-
56-
```ruby
57-
gem 'activerecord-postgis-adapter'
58-
```
59-
60-
#### Version 11.x supports ActiveRecord 8.0
61-
62-
```
63-
ActiveRecord 8.0
64-
Ruby 3.2.0+
65-
PostGIS 2.0+
66-
```
67-
68-
#### Version 10.x supports ActiveRecord 7.2
69-
70-
```
71-
ActiveRecord 7.2
72-
Ruby 3.1.0+
73-
PostGIS 2.0+
74-
```
75-
76-
#### Version 9.x supports ActiveRecord 7.1
77-
78-
```
79-
ActiveRecord 7.1
80-
Ruby 3.0.0+
81-
PostGIS 2.0+
82-
```
83-
84-
#### Version 8.x supports ActiveRecord 7.0
85-
86-
Requirements:
87-
88-
```
89-
ActiveRecord 7.0
90-
Ruby 2.7.0+
91-
PostGIS 2.0+
92-
```
93-
94-
#### Version 7.x supports ActiveRecord 6.1
95-
96-
Requirements:
97-
98-
```
99-
ActiveRecord 6.1
100-
Ruby 2.5.0+, JRuby
101-
PostGIS 2.0+
102-
```
103-
104-
#### Version 6.x supports ActiveRecord 6.0
105-
106-
Requirements:
107-
108-
```
109-
ActiveRecord 6.0
110-
Ruby 2.5.0+, JRuby
111-
PostGIS 2.0+
112-
```
113-
114-
#### Version 5.x supports ActiveRecord 5.1 and 5.2
115-
116-
Requirements:
117-
118-
```
119-
ActiveRecord 5.1 or 5.2
120-
Ruby 2.2.2+, JRuby
121-
PostGIS 2.0+
122-
```
123-
124-
#### Version 4.x supports ActiveRecord 5.0
125-
126-
Requirements:
127-
128-
```
129-
ActiveRecord 5.0
130-
Ruby 2.2.2+, JRuby
131-
PostGIS 2.0+
132-
```
133-
134-
#### Version 3.x supports ActiveRecord 4.2
135-
136-
Requirements:
137-
138-
```
139-
ActiveRecord 4.2
140-
Ruby 1.9.3+, JRuby
141-
PostGIS 2.0+
142-
```
143-
144-
#### Version 2.x supports ActiveRecord 4.0.x and 4.1.x
145-
146-
_If you are using version 2.x, you should read [the version 2.x README](https://github.com/rgeo/activerecord-postgis-adapter/blob/2.0-stable/README.md)_
147-
148-
Requirements:
149-
150-
```
151-
ActiveRecord 4.0.0 - 4.1.x
152-
Ruby 1.9.3+, JRuby
153-
PostGIS 2.0+
154-
```
155-
156-
#### Version 0.6.x supports ActiveRecord 3.x
157-
158-
_If you are using version 0.6.x, you should read [the version 0.6.x / 2.x README](https://github.com/rgeo/activerecord-postgis-adapter/blob/2.0-stable/README.md)_
159-
160-
Requirements:
161-
162-
```
163-
ActiveRecord 3.x only
164-
Ruby 1.8.7+, JRuby, Rubinius
165-
PostGIS 1.5+
166-
```
167-
168-
Gemfile:
169-
170-
```ruby
171-
gem 'activerecord-postgis-adapter', '~> 0.6.6'
172-
```
173-
174-
Please read [PostGIS 1 Notes](https://github.com/rgeo/activerecord-postgis-adapter/blob/master/PostGIS_1.md)
175-
if you would like to use the adapter with an older version of PostGIS.
54+
### Version compatibility
55+
56+
| Version | ActiveRecord | Ruby | PostGIS | Note |
57+
| ------- | ------------- | ----------------------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
58+
| 11.x | 8.0 | 3.2.0+ | 2.0+ | |
59+
| 10.x | 7.2 | 3.1.0+ | 2.0+ | |
60+
| 9.x | 7.1 | 3.0.0+ | 2.0+ | |
61+
| 8.x | 7.0 | 2.7.0+ | 2.0+ | |
62+
| 7.x | 6.1 | 2.5.0+, JRuby | 2.0+ | |
63+
| 6.x | 6.0 | 2.5.0+, JRuby | 2.0+ | |
64+
| 5.x | 5.1, 5.2 | 2.2.2+, JRuby | 2.0+ | |
65+
| 4.x | 5.0 | 2.2.2+, JRuby | 2.0+ | |
66+
| 3.x | 4.2 | 1.9.3+, JRuby | 2.0+ | |
67+
| 2.x | 4.0.0 - 4.1.x | 1.9.3+, JRuby | 2.0+ | [Read 2.x README](https://github.com/rgeo/activerecord-postgis-adapter/blob/2.0-stable/README.md) |
68+
| 0.6.x | 3.x | 1.8.7+, JRuby, Rubinius | 1.5+ | [Read 0.6.x / 2.x README](https://github.com/rgeo/activerecord-postgis-adapter/blob/2.0-stable/README.md) <br /> [PostGIS 1 Notes](https://github.com/rgeo/activerecord-postgis-adapter/blob/master/PostGIS_1.md) |
17669

17770
#### Upgrading to version 8.x
17871

@@ -260,6 +153,7 @@ rails generate migration AddPostgisExtensionToDatabase
260153
```
261154

262155
The migration should look something like this:
156+
263157
```ruby
264158
class AddPostgisExtensionToDatabase < ActiveRecord::Migration[7.2]
265159
def change

0 commit comments

Comments
 (0)