Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add deletion of join table records for BelongsToMany associations
When cascade is true we should remove rows in BelongsToMany join tables. Ideally people will set this to false and use database constraints, but this is a reasonable backup in case constraints aren't used.
- Loading branch information
Showing
2 changed files
with
101 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters