Fix crypto subtype for trades api (#1022)

* fix: crypto subtype not persisted by permitting :subtype in CryptosController

* Backfill crypto subtype for existig accounts so Trades API works

* fix: backfill only unlinked cryptos; use raw SQL in migration; deterministic redirect in test

* Update schema.rb for BackfillcryptoSubtypeForTrades migration

---------

Signed-off-by: dataCenter430 <161712630+dataCenter430@users.noreply.github.com>
This commit is contained in:
dataCenter430
2026-02-19 19:51:42 +01:00
committed by GitHub
parent 356d9ebf3a
commit cfadff641f
5 changed files with 81 additions and 2 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
class CryptosController < ApplicationController
include AccountableResource
permitted_accountable_attributes :id, :tax_treatment
permitted_accountable_attributes :id, :subtype, :tax_treatment
end