Method not available on this version
This method is only available on newer versions.
The first available version (v2.1.0) is shown here.
change(column_name, type, options = {})
public
Changes the column’s definition according to the new
options. See TableDefinition#column for details of the options you can use.
Examples
t.change(:name, :string, :limit => 80)
t.change(:description, :text)
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 547
def change(column_name, type, options = {})
@base.change_column(@table_name, column_name, type, options)
end