Skip to content

Comment on Five Common Rails Mistakesparent

Comments

I looked up the API documentation for pluck... That definitely looks like what I'm talking about :-)

Does the second query translate to a straight DELETE?

Yes - `delete from posts where published = 1;` (or however your particular database adapter translates true)

AboutSource Built by g1lg1l

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