RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Handling Slow Cascading Deletes In Rails

We all inevitably face the compromise of handling cascading deletes in Rails. Do we do dependent destroys (which are ideal but slow) or just let the database handle the cleanup (but loose the lifecycle control)? Neither is idea, so we made a simple utility for how we’ve been doing those types of deletes that’s somewhere in the middle. We call it Miss Hannigan.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in