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