1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-24 15:49:39 +02:00

Multi-currency part 1 (#542)

* Add family snapshots table

* Add snapshot method, clean up family expected results

* Remove old sync trigger
This commit is contained in:
Zach Gollwitzer 2024-03-11 16:32:13 -04:00 committed by GitHub
parent 1cdf5ea6a7
commit c60ddaec1d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 169 additions and 141 deletions

View file

@ -0,0 +1,13 @@
class AddSyncStatusFieldsToAccount < ActiveRecord::Migration[7.2]
def change
create_enum :account_status, %w[ok syncing error]
remove_column :accounts, :status, :string
change_table :accounts do |t|
t.enum :status, enum_type: :account_status, default: "ok", null: false
t.jsonb :sync_warnings, default: '[]', null: false
t.jsonb :sync_errors, default: '[]', null: false
end
end
end