remove monetize helper from CreateFiatBalances migration

This commit is contained in:
João Geonizeli
2021-08-14 13:51:00 -03:00
parent 3813abdaf0
commit de5e581f21
2 changed files with 4 additions and 2 deletions

View File

@@ -3,7 +3,9 @@ class CreateFiatBalances < ActiveRecord::Migration[6.1]
def change
create_table(:fiat_balances) do |t|
t.references(:user, null: false, foreign_key: true)
t.monetize(:amount)
t.integer(:amount_cents, null: false, default: 0)
t.string(:amount_currency, null: false, default: "BRL")
t.timestamps
end