1 class RepairScriptParametersDigest < ActiveRecord::Migration
4 have = j.script_parameters_digest
5 want = j.update_script_parameters_digest
7 # where().update_all() skips validations, event logging, and
8 # timestamp updates, and just runs SQL. (This change is
9 # invisible to clients.)
10 Job.where('id=?', j.id).update_all(script_parameters_digest: want)