aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorRemo Mueller <remosm@gmail.com>2016-02-02 16:51:07 -0500
committerRemo Mueller <remosm@gmail.com>2016-02-02 16:51:07 -0500
commit85a3e0fa82aaa42c2d5a179a94ed84f2b2abbd16 (patch)
tree11685f306154b88427198f51e3eb7f5722db44f1 /activerecord/lib
parent6704a9be7e1df9dc8458eae332b40f23959e0d7b (diff)
downloadrails-85a3e0fa82aaa42c2d5a179a94ed84f2b2abbd16.tar.gz
rails-85a3e0fa82aaa42c2d5a179a94ed84f2b2abbd16.tar.bz2
rails-85a3e0fa82aaa42c2d5a179a94ed84f2b2abbd16.zip
The minimum supported version of PostgreSQL is now >= 9.1
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
index d69c2e186b..a6d9a47b90 100644
--- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
+++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
@@ -214,7 +214,7 @@ module ActiveRecord
@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 @@ module ActiveRecord
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