News for hackers. Stuff that matters.
Re:Five Common Rails Mistakes by chris_wot on Sunday May 06, 2012 @09:30AM (#3935073)
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?

Re:Five Common Rails Mistakes by rahoulb on Sunday May 06, 2012 @12:33PM (#3935511)
Yes - `delete from posts where published = 1;` (or however your particular database adapter translates true)