Skip to content

Commit dd58d04

Browse files
authored
Merge pull request rails#35909 from simi/alias-postgresql-adapter
Bring back postgresql_version as an alias.
2 parents 2ab3751 + 7618d08 commit dd58d04

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,7 @@ def column_name_for_operation(operation, node) # :nodoc:
425425
def get_database_version # :nodoc:
426426
@connection.server_version
427427
end
428+
alias :postgresql_version :database_version
428429

429430
def default_index_type?(index) # :nodoc:
430431
index.using == :btree || super

0 commit comments

Comments
 (0)