mirror of
https://github.com/we-promise/sure.git
synced 2026-04-18 11:34:13 +00:00
* [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>
12 lines
404 B
Ruby
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
|