提交 85a3e0fa 编写于 作者: R Remo Mueller

The minimum supported version of PostgreSQL is now >= 9.1

上级 6704a9be
* 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`
......
......@@ -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
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册