method
remove_columns
Ruby on Rails latest stable (v7.1.3.2)
-
0 notes -
Class: ActiveRecord::ConnectionAdapters::SchemaStatements
remove_columns(table_name, *column_names, type: nil, **options)
public
Removes the given columns from the table definition.
remove_columns(:suppliers, :qualification, :experience)
type and other column options can be passed to make migration reversible.
remove_columns(:suppliers, :qualification, :experience, type: :string, null: false)