Method: ActiveRecord::ConnectionAdapters::SchemaStatements#change_column

Defined in:
activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb

#change_column(table_name, column_name, type, options = {}) ⇒ Object

Changes the column’s definition according to the new options. See TableDefinition#column for details of the options you can use.

change_column(:suppliers, :name, :string, limit: 80)
change_column(:accounts, :description, :text)

Raises:

  • (NotImplementedError)


630
631
632
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb', line 630

def change_column(table_name, column_name, type, options = {})
  raise NotImplementedError, "change_column is not implemented"
end