mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 03:54:08 +00:00
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
This commit is contained in:
7
db/migrate/20240614120946_create_transfers.rb
Normal file
7
db/migrate/20240614120946_create_transfers.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
class CreateTransfers < ActiveRecord::Migration[7.2]
|
||||
def change
|
||||
create_table :transfers, id: :uuid do |t|
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,8 @@
|
||||
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
|
||||
Reference in New Issue
Block a user