instance method
columns
Ruby on Rails 4.2.9
Since v3.2.22.5Signature
columns(table_name)
Get the columns for a table
Parameters
-
table_namereq
Source
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 42
def columns(table_name)
@columns[table_name] ||= connection.columns(table_name)
end
Defined in activerecord/lib/active_record/connection_adapters/schema_cache.rb line 42
· View on GitHub
· Improve this page
· Find usages on GitHub