Skip to content

Commit

Permalink
The minimum supported version of PostgreSQL is now >= 9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
remomueller committed Feb 2, 2016
1 parent 6704a9b commit 85a3e0f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 6 additions & 0 deletions activerecord/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
* Bumped the minimum supported version of PostgreSQL to >= 9.1.
Both PG 9.0 and 8.4 are past their end of life date:
http://www.postgresql.org/support/versioning/

*Remo Mueller*

## Rails 5.0.0.beta2 (February 01, 2016) ##

* `ActiveRecord::Relation#reverse_order` throws `ActiveRecord::IrreversibleOrderError`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def initialize(connection, logger, connection_parameters, config)
@statements = StatementPool.new @connection,
self.class.type_cast_config_to_integer(config.fetch(:statement_limit) { 1000 })

if postgresql_version < 80200
if postgresql_version < 90100
raise "Your version of PostgreSQL (#{postgresql_version}) is too old, please upgrade!"
end

Expand Down Expand Up @@ -297,9 +297,8 @@ def supports_explain?
true
end

# Returns true if pg > 9.1
def supports_extensions?
postgresql_version >= 90100
true
end

# Range datatypes weren't introduced until PostgreSQL 9.2
Expand Down

0 comments on commit 85a3e0f

Please sign in to comment.