Skip to content

Commit 6065bee

Browse files
author
Anna
committed
Fix deprication warning call columns with a table name!
1 parent c0ba24b commit 6065bee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/active_record/connection_adapters/sqlserver_adapter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ def pk_and_sequence_for(table_name)
311311
end
312312

313313
def primary_key(table_name)
314-
identity_column(table_name).try(:name) || schema_cache.columns[table_name].detect(&:is_primary?).try(:name)
314+
identity_column(table_name).try(:name) || schema_cache .columns(table_name).detect(&:is_primary?).try(:name)
315315
end
316316

317317
# === SQLServer Specific (DB Reflection) ======================== #

0 commit comments

Comments
 (0)