Objective:
I would like to reset the array attribute of all objects in a class to []. The way they started.
My attempt:
> Deal.find(:all).update_attribute('votes', [])
Outcome:
Returns an error. How would you do this?
Objective:
I would like to reset the array attribute of all objects in a class to []. The way they started.
My attempt:
> Deal.find(:all).update_attribute('votes', [])
Outcome:
Returns an error. How would you do this?