1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-21 06:09:38 +02:00
Maybe/db/migrate/20240614121110_add_transfer_fields_to_transaction.rb
Zach Gollwitzer ca39b26070
Transaction transfers, payments, and matching (#883)
* Add transfer model and clean up family snapshot fixtures

* Ignore transfers in income and expense snapshots

* Add transfer validations

* Implement basic transfer matching UI

* Fix merge conflicts

* Add missing translations

* Tweak selection states for transfer types

* Add missing i18n translation
2024-06-19 06:52:08 -04:00

8 lines
263 B
Ruby

class AddTransferFieldsToTransaction < ActiveRecord::Migration[7.2]
def change
change_table :transactions do |t|
t.references :transfer, foreign_key: true, type: :uuid
t.boolean :marked_as_transfer, default: false, null: false
end
end
end