class RenameColumnsInCashOut2 < ActiveRecord::Migration def change remove_column :cash_outs, :received_by add_column :cash_outs, :received_by_id, :integer, index: true, null: true end end