instance method
columns
Ruby on Rails 4.0.13
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 54
def columns(table = nil)
if table
@columns[table]
else
ActiveSupport::Deprecation.warn('call columns with a table name!')
@columns.dup
end
end
Defined in activerecord/lib/active_record/connection_adapters/schema_cache.rb line 54
· View on GitHub
· Improve this page
· Find usages on GitHub