Why Rails `dependent: :destroy` Gets Painfully Slow, with a Simple Example
DEV · 16.11.2026 · 05:18
What happens dependent: :destroy (so-called cascade delete) is handy: delete the parent record, and its child records go with it. But if the children have callbacks, those callbacks fire on…