mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-22 22:59:39 +02:00
9 lines
313 B
Ruby
9 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
|