Bug: Holding model should have ActiveRecord and DB null constraints #1781
Labels
2️⃣ Medium Priority
Community contributions accepted, Maybe team only works on if there are no high priority items open
As seen in #1767, we're getting some invalid data in the DB because the
Holding
model does not validateamount
.We should ideally be adding both DB-level constraints and ActiveRecord validations on:
date
,qty
,price
,amount
, andcurrency
.Since we have some invalid data states in the DB right now, this will require a migration to clear out invalid data prior to adding the null constraints at the DB level.
The text was updated successfully, but these errors were encountered: