Files
sure/db/migrate/20260327130000_increase_crypto_quantity_precision.rb
Anas Limouri a90f9b7317 Add CoinStats exchange portfolio sync and normalize linked investment charts (#1308)
* [FEATURE] Add CoinStats exchange portfolios and normalize linked investment charts

* [BUGFIX] Fix CoinStats PR regressions

* [BUGFIX] Fix CoinStats PR review findings

* [BUGFIX] Address follow-up CoinStats PR feedback

* [REFACTO] Extract CoinStats exchange account helpers

* [BUGFIX] Batch linked CoinStats chart normalization

* [BUGFIX] Fix CoinStats processor lint

---------

Signed-off-by: Juan José Mata <juanjo.mata@gmail.com>
Co-authored-by: Juan José Mata <juanjo.mata@gmail.com>
2026-04-01 20:25:06 +02:00

12 lines
404 B
Ruby

class IncreaseCryptoQuantityPrecision < ActiveRecord::Migration[7.2]
def up
change_column :holdings, :qty, :decimal, precision: 24, scale: 8, null: false
change_column :trades, :qty, :decimal, precision: 24, scale: 8
end
def down
change_column :holdings, :qty, :decimal, precision: 19, scale: 4, null: false
change_column :trades, :qty, :decimal, precision: 19, scale: 4
end
end