instance method
add
Ruby on Rails 7.1.6
Since v4.0.13Signature
add(connection, table_name)
Add internal cache for table with table_name.
Parameters
-
connectionreq -
table_namereq
Source
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 325
def add(connection, table_name)
if data_source_exists?(connection, table_name)
primary_keys(connection, table_name)
columns(connection, table_name)
columns_hash(connection, table_name)
indexes(connection, table_name)
end
end
Defined in activerecord/lib/active_record/connection_adapters/schema_cache.rb line 325
· View on GitHub
· Improve this page
· Find usages on GitHub