1 class RenameForeignUuidAttributes < ActiveRecord::Migration
3 rename_column :api_client_authorizations, :default_owner, :default_owner_uuid
4 [:api_clients, :authorized_keys, :collections,
5 :groups, :humans, :job_tasks, :jobs, :keep_disks,
6 :links, :logs, :nodes, :pipeline_instances, :pipeline_templates,
7 :repositories, :specimens, :traits, :users, :virtual_machines].each do |t|
8 rename_column t, :owner, :owner_uuid
9 rename_column t, :modified_by_client, :modified_by_client_uuid
10 rename_column t, :modified_by_user, :modified_by_user_uuid
12 rename_column :collections, :redundancy_confirmed_by_client, :redundancy_confirmed_by_client_uuid
13 rename_column :jobs, :is_locked_by, :is_locked_by_uuid
14 rename_column :job_tasks, :created_by_job_task, :created_by_job_task_uuid