我想用 update_all 更新多行,但我需要使用从 where() 中选择的一列中的现有值,如何在 update_all 中指定值,它看起来像这样:
# == 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: "这里我想把分数拿出来做一些修改然后存回去")
非常感谢。