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