Q:

rails remove column

rails generate migration RemoveFieldNameFromTableName field_name:datatype

remove_column :table_name, :column_name
6
class RemoveCountryFromSampleApps < ActiveRecord::Migration[5.0]
  def change
    remove_column :sample_apps, :country, :string
  end
end
1
remove_column :table_name, :column_name
0

New to Communities?

Join the community