budget/db/migrate/20230225002002_explicit_credit_card.rb

7 lines
237 B
Ruby

class ExplicitCreditCard < ActiveRecord::Migration[7.0]
def change
rename_column :expenses, :autopaid, :credit_card
rename_table :extra_bills, :credit_card_bills
remove_column :credit_card_bills, :deduct_autopaid
end
end