FIX schema drift and snaptrade and mercury issues (#1232)

This commit is contained in:
soky srm
2026-03-20 14:52:09 +01:00
committed by GitHub
parent 8e19cee329
commit 2cdddd28d7
4 changed files with 1 additions and 89 deletions

View File

@@ -17,7 +17,6 @@ class SnaptradeAccount < ApplicationRecord
has_one :linked_account, through: :account_provider, source: :account
validates :name, :currency, presence: true
validates :account_id, uniqueness: { scope: :snaptrade_item_id, allow_nil: true }
validates :snaptrade_account_id, uniqueness: { scope: :snaptrade_item_id, allow_nil: true }
# Enqueue cleanup job after destruction to avoid blocking transaction with API call