mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-24 15:49:39 +02:00
Update database migrations and strengthen db smoke tests (#462)
This commit is contained in:
parent
3ec9c9b56b
commit
093ddba28f
3 changed files with 2 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
class ReplaceMoneyField < ActiveRecord::Migration[7.2]
|
||||
def change
|
||||
add_column :accounts, :balance_cents
|
||||
add_column :accounts, :balance_cents, :integer
|
||||
change_column :accounts, :balance_cents, :integer, limit: 8
|
||||
|
||||
Account.reset_column_information
|
||||
|
|
|
@ -6,7 +6,6 @@ class RedoMoneyStorage < ActiveRecord::Migration[7.2]
|
|||
add_column :accounts, :converted_currency, :string, default: "USD"
|
||||
|
||||
remove_column :accounts, :balance_cents
|
||||
remove_column :accounts, :balance_currency
|
||||
remove_column :accounts, :currency
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue