1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

The minimum supported version of PostgreSQL is now >= 9.1

This commit is contained in:
Remo Mueller 2016-02-02 16:51:07 -05:00
parent 6704a9be7e
commit 85a3e0fa82
2 changed files with 8 additions and 3 deletions

View file

@ -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) ## ## Rails 5.0.0.beta2 (February 01, 2016) ##
* `ActiveRecord::Relation#reverse_order` throws `ActiveRecord::IrreversibleOrderError` * `ActiveRecord::Relation#reverse_order` throws `ActiveRecord::IrreversibleOrderError`

View file

@ -214,7 +214,7 @@ module ActiveRecord
@statements = StatementPool.new @connection, @statements = StatementPool.new @connection,
self.class.type_cast_config_to_integer(config.fetch(:statement_limit) { 1000 }) 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!" raise "Your version of PostgreSQL (#{postgresql_version}) is too old, please upgrade!"
end end
@ -297,9 +297,8 @@ module ActiveRecord
true true
end end
# Returns true if pg > 9.1
def supports_extensions? def supports_extensions?
postgresql_version >= 90100 true
end end
# Range datatypes weren't introduced until PostgreSQL 9.2 # Range datatypes weren't introduced until PostgreSQL 9.2