Interestings Don’t use delete_all
Let’s say you have a has_many relationship – project has_many stories. You don’t have dependent: destroy on the association.
If you call project.stories.delete_all, it does not delete the stories. Instead, it inserts NULL into the stories’ … Read more