I'd like to update multiple rows with update_all, but I need to use the existed value in one column selected from where(), how can I specify the value in update_all, it looks like this:
# == Schema Information
#
# Table name: records
#
# id :integer not null, primary key
# name :string
# game_id :integer
# score :integer
# date :date
Record.where(:name => "mike", :game_id => 1).update_all(score: "here I want to take out the score out and do some modifications and then store back")
Thanks a lot.