aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorPrathamesh Sonpatki <csonpatki@gmail.com>2016-02-03 10:39:10 +0530
committerPrathamesh Sonpatki <csonpatki@gmail.com>2016-02-03 10:39:10 +0530
commit7ec5f9f8ddb7f41c9406ec2d40e66daaf801639c (patch)
treebef53eb9859c22ee121fe8cff9dbd7cfc075498b /activerecord
parent522099a13ffea611dfb37d4d22da62eb8cb81c12 (diff)
downloadrails-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.rb2
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