Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Align cascade delete behavior for transfers #1647

Merged
merged 2 commits into from
Jan 20, 2025

Conversation

zachgoll
Copy link
Collaborator

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant