Flowdock

Notes posted by jamesconant

RSS feed
October 1, 2013
0 thanks

Update multiple attributes with raw sql

You can update multiple attributes with sql for each record being updated by using the following syntax:

example

Model.update_all("foo = 'bar', baz = 'bat'")