Migration DSL
Use t.amount to declare amount-backed columns.
Multi-symbol amount
ruby
t.amount :amountCreates:
amount_atomicasnumeric(78, 0)amount_symbolasstring(10)
Fixed symbol amount
ruby
t.amount :fee, symbol: :SOLCreates:
fee_atomicasnumeric(78, 0)
Precision override
ruby
t.amount :reserve, precision: 40Use this only when you intentionally want tighter bounds.