Skip to content

Comment on Five Common Rails Mistakesparent

Comments

You are right, well in that case, you would have to delete associated records manually if you didn't add any foreign keys at the db level

I'd suggest deleting or dealing with those records anyway, regardless of whether you added FKs! But... if you don't add FKs, you've got bigger issues to deal with :(

AboutSource Built by g1lg1l

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