diff options
author | Prathamesh Sonpatki <csonpatki@gmail.com> | 2016-02-03 10:39:10 +0530 |
---|---|---|
committer | Prathamesh Sonpatki <csonpatki@gmail.com> | 2016-02-03 10:39:10 +0530 |
commit | 7ec5f9f8ddb7f41c9406ec2d40e66daaf801639c (patch) | |
tree | bef53eb9859c22ee121fe8cff9dbd7cfc075498b /activerecord | |
parent | 522099a13ffea611dfb37d4d22da62eb8cb81c12 (diff) | |
download | rails-7ec5f9f8ddb7f41c9406ec2d40e66daaf801639c.tar.gz rails-7ec5f9f8ddb7f41c9406ec2d40e66daaf801639c.tar.bz2 rails-7ec5f9f8ddb7f41c9406ec2d40e66daaf801639c.zip |
Mention supported PG version in the error message.
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb index a6d9a47b90..beaeef3c78 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb @@ -215,7 +215,7 @@ module ActiveRecord self.class.type_cast_config_to_integer(config.fetch(:statement_limit) { 1000 }) 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. Active Record supports PostgreSQL >= 9.1." end add_pg_decoders |