fix: user deletion foreign key constraint with invitations #2357

Merged
quanghuynguyen1902 merged 1 commits from fix-user-deletion-invitation-constraint into main 2025-06-12 09:26:31 +08:00
quanghuynguyen1902 commented 2025-06-11 14:07:04 +08:00 (Migrated from github.com)

Summary

• Fix foreign key constraint violation when deleting users
with invitations
• Add missing has_many :invitations association with
dependent: :destroy to User model
Resolves #2341

Test plan

  • Verify User model has correct association
  • Confirm database foreign key constraint exists
  • Test deletion flow works without constraint violation
## Summary • Fix foreign key constraint violation when deleting users with invitations • Add missing `has_many :invitations` association with `dependent: :destroy` to User model • Resolves #2341 ## Test plan - [x] Verify User model has correct association - [x] Confirm database foreign key constraint exists - [x] Test deletion flow works without constraint violation
Sign in to join this conversation.