mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-09 07:25:19 +02:00
Make migration reversible
This commit is contained in:
parent
ea4b8d5044
commit
ea5b279f0f
1 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ class AddRawPayloadsToPlaidAccounts < ActiveRecord::Migration[7.2]
|
||||||
add_index :plaid_accounts, :plaid_id, unique: true
|
add_index :plaid_accounts, :plaid_id, unique: true
|
||||||
|
|
||||||
# No longer need to store on transaction model because it is stored in raw_transactions_payload
|
# No longer need to store on transaction model because it is stored in raw_transactions_payload
|
||||||
remove_column :transactions, :plaid_category
|
remove_column :transactions, :plaid_category, :string
|
||||||
remove_column :transactions, :plaid_category_detailed
|
remove_column :transactions, :plaid_category_detailed, :string
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue