mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 12:04:08 +00:00
FIX schema drift and snaptrade and mercury issues (#1232)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user