1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-21 14:19:39 +02:00
Maybe/db/migrate/20240524203959_change_account_error_columns_default.rb
Jakub Kottnauer 483d67846c
Fix foreign account sync crash (#794)
* Fix foreign account sync crash

* Refactor synth provider and show UI error if not configured

* Generate error message on missing exchange rates while converting balances

* Ignore sync messaged in i18n-tasks unused

* Generate missing exchange rate error during entry normalization

* Update alert classes
2024-05-27 12:10:28 -04:00

8 lines
313 B
Ruby

class ChangeAccountErrorColumnsDefault < ActiveRecord::Migration[7.2]
def up
change_column_default :accounts, :sync_warnings, from: "[]", to: []
change_column_default :accounts, :sync_errors, from: "[]", to: []
Account.update_all(sync_warnings: [])
Account.update_all(sync_errors: [])
end
end