mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-24 15:49:39 +02:00
Allow 0 qty for Plaid imported trades
This commit is contained in:
parent
570a0c7ff6
commit
955f211fe0
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue