instance method
columns_hash
Ruby on Rails 4.1.16
Since v3.2.22.5Signature
columns_hash(table)
Get the columns for a table as a hash, key is the column name value is the column object.
Parameters
-
tablereq
Source
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 49
def columns_hash(table)
@columns_hash[table]
end
Defined in activerecord/lib/active_record/connection_adapters/schema_cache.rb line 49
· View on GitHub
· Improve this page
· Find usages on GitHub