mirror of
https://github.com/we-promise/sure.git
synced 2026-04-18 03:24:09 +00:00
12 lines
489 B
Ruby
12 lines
489 B
Ruby
class RedoMoneyStorage < ActiveRecord::Migration[7.2]
|
|
def change
|
|
add_column :accounts, :original_balance, :decimal, precision: 19, scale: 4, default: 0.0
|
|
add_column :accounts, :original_currency, :string, default: "USD"
|
|
add_column :accounts, :converted_balance, :decimal, precision: 19, scale: 4, default: 0.0
|
|
add_column :accounts, :converted_currency, :string, default: "USD"
|
|
|
|
remove_column :accounts, :balance_cents
|
|
remove_column :accounts, :currency
|
|
end
|
|
end
|