class UpdateFieldsOnEmployer < ActiveRecord::Migration[7.2]
  def change
    remove_column :employers, :form_method, :string
    remove_column :employers, :status, :string
    remove_column :employers, :current_step, :string
    remove_column :employers, :applied_to_prod, :boolean
    remove_column :employers, :applied_to_dev, :boolean
    rename_column :employers, :employer_name, :name
    rename_column :employers, :card_template, :single_card_template
    add_column :employers, :multiple_card_template, :string
    add_column :employers, :plan_id, :integer
    add_column :employers, :active, :boolean, default: false
  end
end
