1
0
Fork 0
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
Some checks are pending
Publish Docker image / ci (push) Waiting to run
Publish Docker image / Build docker image (push) Blocked by required conditions

This commit is contained in:
Zach Gollwitzer 2024-11-25 13:28:31 -05:00
parent 570a0c7ff6
commit 955f211fe0

View file

@ -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