1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
5 class SeparateRepositoryFromScriptVersion < ActiveRecord::Migration[4.2]
6 include CurrentApiClient
11 commit_ish = v["script_version"]
12 if commit_ish.andand.index(':')
13 want_repo, commit_ish = commit_ish.split(':',2)
14 v[:repository] = want_repo
15 v[:script_version] = commit_ish
23 PipelineTemplate.all.each do |pt|
26 PipelineInstance.all.each do |pt|
33 raise ActiveRecord::IrreversibleMigration