aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorJosef Šimánek <josef.simanek@gmail.com>2019-04-09 12:16:54 +0200
committerJosef Šimánek <josef.simanek@gmail.com>2019-04-09 15:37:00 +0200
commit7618d08b2610c784ffffc1ff8b4641ae21d208a0 (patch)
tree7976858a5f5fdf56d3fd7d5200f2847f44f9c9fb /activerecord
parent9b5401fcc9624be9bd60331d59169267ae2f7bac (diff)
downloadrails-7618d08b2610c784ffffc1ff8b4641ae21d208a0.tar.gz
rails-7618d08b2610c784ffffc1ff8b4641ae21d208a0.tar.bz2
rails-7618d08b2610c784ffffc1ff8b4641ae21d208a0.zip
Bring back postgresql_version as an alias.
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
index f8c2e48808..2ba3e3f4a3 100644
--- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
+++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
@@ -425,6 +425,7 @@ module ActiveRecord
def get_database_version
@connection.server_version
end
+ alias :postgresql_version :database_version
def default_index_type?(index) # :nodoc:
index.using == :btree || super