Skip to content

Commit

Permalink
Allow 0 qty for Plaid imported trades
Browse files Browse the repository at this point in the history
  • Loading branch information
zachgoll committed Nov 25, 2024
1 parent 570a0c7 commit 955f211
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/account/trade.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 955f211

Please sign in to comment.