Method not available on this version
This method is only available on newer versions.
The first available version (v2.1.0) is shown here.
column(column_name, type, options = {})
public
Adds a new column to
the named table. See TableDefinition#column for details of the options you
can use.
Example
Creating a simple column
t.column(:name, :string)
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 517
def column(column_name, type, options = {})
@base.add_column(@table_name, column_name, type, options)
end