class AddCategoryRefToExpense < ActiveRecord::Migration[5.0]
  def change
    add_reference :expenses, :category, index: true
  end
end

class AddCategoryRefToExpense < ActiveRecord::Migration[5.0]
  def change
    add_reference :expenses, :category
  end
end

Remove index from Category->Expense reference
Remove index from Category->Expense reference
