1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #35909 from simi/alias-postgresql-adapter

Bring back postgresql_version as an alias.
This commit is contained in:
Ryuta Kamizono 2019-04-10 01:24:54 +09:00 committed by GitHub
commit dd58d040b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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