change(column_name, type, **options)
public
Changes the column’s definition according to the new
options.
t.change(:name, :string, limit: 80)
t.change(:description, :text)
See TableDefinition#column for details of the options you can use.
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 663
def change(column_name, type, **options)
@base.change_column(name, column_name, type, **options)
end