aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2016-02-03 17:05:20 -0200
committerRafael França <rafaelmfranca@gmail.com>2016-02-03 17:05:20 -0200
commit6ece7df8d80c6d93db43878fa4c0278a0204072c (patch)
tree7964c65dcefe31c5ab058bfc413c99acca372dc3 /activerecord
parent12bdda74d3f1f4069ddb3289a6e4feb6a63c0302 (diff)
parent52b3226a7a8662e8c975ad7e820085451e21b8cf (diff)
downloadrails-6ece7df8d80c6d93db43878fa4c0278a0204072c.tar.gz
rails-6ece7df8d80c6d93db43878fa4c0278a0204072c.tar.bz2
rails-6ece7df8d80c6d93db43878fa4c0278a0204072c.zip
Merge pull request #23442 from prathamesh-sonpatki/improve-pg-version-old-error-message
Improve pg version old error message and mention this change in release notes.
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