Skip to content

Comment on Five Common Rails Mistakesparent

Comments

this is why i prefer using "on delete cascade" in schemas, no need to transmit lots of data over the wire and instantiate thousands of slow activerecord objects when deleting stuff.

Though you're still left to deal with your destroy callbacks/observers, if you have any.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.