Fix Account Holding validation and synchronization #1818
Reference in New Issue
Block a user
Delete Branch "holding-model-constraints"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #1781
@zachgoll Is this what you had in mind for addressing #1781 and #1767?
Yep, that's pretty much what I was thinking!
@@ -0,0 +1,40 @@class AddConstraintsToAccountHoldings < ActiveRecord::Migration[7.2]Migration makes sense overall, but I think for these more complex validations (i.e.
check_positive_valuesandcheck_amount_matches), we should keep those inActiveRecord.While the current codebase has some gaps still, I'm trying to move our validations towards the following convention. Here's a
project-conventions.mdcformat that can be pasted in for the AI (forgot this first time around!):