#primary_keys(table_name)
[ GitHub ]# File 'activerecord/lib/active_record/connection_adapters/schema_cache.rb', line 79
def primary_keys(table_name) @primary_keys.fetch(table_name) do if data_source_exists?(table_name) @primary_keys[deep_deduplicate(table_name)] = deep_deduplicate(connection.primary_key(table_name)) end end end