Skip to content
This repository was archived by the owner on Jul 27, 2025. It is now read-only.

Align cascade delete behavior for transfers#1647

Merged
zachgoll merged 2 commits intomainfrom
zachgoll/align-transfer-cascade-constraints
Jan 20, 2025
Merged

Align cascade delete behavior for transfers#1647
zachgoll merged 2 commits intomainfrom
zachgoll/align-transfer-cascade-constraints

Conversation

@zachgoll
Copy link
Contributor

While #1644 addressed the cascade logic for deleting transactions that belong to a transfer, certain bulk operations like account.destroy where there are many associated transfers results in foreign key violations. This PR aligns the DB cascade behavior with our dependent: :destroy behavior within the Account::Transaction model.

@zachgoll zachgoll merged commit 67d81f8 into main Jan 20, 2025
5 checks passed
@zachgoll zachgoll deleted the zachgoll/align-transfer-cascade-constraints branch January 20, 2025 21:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant