From 955f211fe0011976d642cbeabc83e6ce02efbcdb Mon Sep 17 00:00:00 2001 From: Zach Gollwitzer Date: Mon, 25 Nov 2024 13:28:31 -0500 Subject: [PATCH] Allow 0 qty for Plaid imported trades --- app/models/account/trade.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/account/trade.rb b/app/models/account/trade.rb index 17e0b0708..3ab2241e5 100644 --- a/app/models/account/trade.rb +++ b/app/models/account/trade.rb @@ -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