instance method
indexes
Ruby on Rails 7.0.10
Since v6.0.6Signature
indexes(table_name)
No documentation comment.
Parameters
-
table_namereq
Source
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 134
def indexes(table_name)
@indexes.fetch(table_name) do
if data_source_exists?(table_name)
@indexes[deep_deduplicate(table_name)] = deep_deduplicate(connection.indexes(table_name))
else
[]
end
end
end
Defined in activerecord/lib/active_record/connection_adapters/schema_cache.rb line 134
· View on GitHub
· Improve this page
· Find usages on GitHub