1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
5 class RenameForeignUuidAttributes < ActiveRecord::Migration
7 rename_column :api_client_authorizations, :default_owner, :default_owner_uuid
8 [:api_clients, :authorized_keys, :collections,
9 :groups, :humans, :job_tasks, :jobs, :keep_disks,
10 :links, :logs, :nodes, :pipeline_instances, :pipeline_templates,
11 :repositories, :specimens, :traits, :users, :virtual_machines].each do |t|
12 rename_column t, :owner, :owner_uuid
13 rename_column t, :modified_by_client, :modified_by_client_uuid
14 rename_column t, :modified_by_user, :modified_by_user_uuid
16 rename_column :collections, :redundancy_confirmed_by_client, :redundancy_confirmed_by_client_uuid
17 rename_column :jobs, :is_locked_by, :is_locked_by_uuid
18 rename_column :job_tasks, :created_by_job_task, :created_by_job_task_uuid