Comment on Five Common Rails MistakesparentComments−chris_wot14yI 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?−rahoulb14yYes - `delete from posts where published = 1;` (or however your particular database adapter translates true)
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)