Basically what I’m trying to do is get the sum of 2 columns and save
those results in another. I guess I’m looking to do something like
a = Product.find(:all)
b = Product.sum(“test + test2”, :group => “id”)
a.test3 = b
Obviously that doesn’t work, but I’m trying to achieve something like
that. Any suggestions?