Allow 0 qty for Plaid imported trades
This commit is contained in:
@@ -5,7 +5,7 @@ class Account::Trade < ApplicationRecord
|
||||
|
||||
belongs_to :security
|
||||
|
||||
validates :qty, presence: true, numericality: { other_than: 0 }
|
||||
validates :qty, presence: true
|
||||
validates :price, :currency, presence: true
|
||||
|
||||
class << self
|
||||
|
||||
Reference in New Issue
Block a user