diff options
| author | Remo Mueller <remosm@gmail.com> | 2016-02-02 16:51:07 -0500 | 
|---|---|---|
| committer | Remo Mueller <remosm@gmail.com> | 2016-02-02 16:51:07 -0500 | 
| commit | 85a3e0fa82aaa42c2d5a179a94ed84f2b2abbd16 (patch) | |
| tree | 11685f306154b88427198f51e3eb7f5722db44f1 /activerecord | |
| parent | 6704a9be7e1df9dc8458eae332b40f23959e0d7b (diff) | |
| download | rails-85a3e0fa82aaa42c2d5a179a94ed84f2b2abbd16.tar.gz rails-85a3e0fa82aaa42c2d5a179a94ed84f2b2abbd16.tar.bz2 rails-85a3e0fa82aaa42c2d5a179a94ed84f2b2abbd16.zip  | |
The minimum supported version of PostgreSQL is now >= 9.1
Diffstat (limited to 'activerecord')
| -rw-r--r-- | activerecord/CHANGELOG.md | 6 | ||||
| -rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb | 5 | 
2 files changed, 8 insertions, 3 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index 3b67c6f495..4ca33491aa 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -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` 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  | 
