X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/61cd57499905e8e8cca07c774d1bf8c6bfa069a7..3b3794c7e0e026a6338165b9e171925e384e6502:/services/api/db/migrate/20140817035914_add_unique_name_constraints.rb diff --git a/services/api/db/migrate/20140817035914_add_unique_name_constraints.rb b/services/api/db/migrate/20140817035914_add_unique_name_constraints.rb index 3b7eecc287..a226836b6b 100644 --- a/services/api/db/migrate/20140817035914_add_unique_name_constraints.rb +++ b/services/api/db/migrate/20140817035914_add_unique_name_constraints.rb @@ -1,7 +1,11 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + class AddUniqueNameConstraints < ActiveRecord::Migration def change # Ensure uniqueness before adding constraints. - ["collections", "pipeline_templates", "pipeline_instances", "jobs", "groups"].each do |table| + ["collections", "pipeline_templates", "groups"].each do |table| rows = ActiveRecord::Base.connection.select_all %{ select uuid, owner_uuid, name from #{table} order by owner_uuid, name }