1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
5 class RepairScriptParametersDigest < ActiveRecord::Migration[4.2]
8 have = j.script_parameters_digest
9 want = j.update_script_parameters_digest
11 # where().update_all() skips validations, event logging, and
12 # timestamp updates, and just runs SQL. (This change is
13 # invisible to clients.)
14 Job.where('id=?', j.id).update_all(script_parameters_digest: want)