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