diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2019-04-10 01:24:54 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-10 01:24:54 +0900 |
commit | dd58d040b2b798105b95e21396e86266bfd40de9 (patch) | |
tree | f7c85d40df1ddae157e1b4396b708e41aa693e33 /activerecord/lib | |
parent | 2ab3751781e34ca4a8d477ba53ff307ae9884b0d (diff) | |
parent | 7618d08b2610c784ffffc1ff8b4641ae21d208a0 (diff) | |
download | rails-dd58d040b2b798105b95e21396e86266bfd40de9.tar.gz rails-dd58d040b2b798105b95e21396e86266bfd40de9.tar.bz2 rails-dd58d040b2b798105b95e21396e86266bfd40de9.zip |
Merge pull request #35909 from simi/alias-postgresql-adapter
Bring back postgresql_version as an alias.
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb | 1 |
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 46f5a1e9e8..91318a0af1 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 # :nodoc: @connection.server_version end + alias :postgresql_version :database_version def default_index_type?(index) # :nodoc: index.using == :btree || super |