projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '15286-fixes'
[arvados.git]
/
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 3b7eecc287c0e5e3fbbe4d282f4b708a57e95ee7..8acae9f20345977611a1000d75c63f08099ac5ef 100644
(file)
--- 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
@@
-class AddUniqueNameConstraints < ActiveRecord::Migration
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
+class AddUniqueNameConstraints < ActiveRecord::Migration[4.2]
def change
# Ensure uniqueness before adding constraints.
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
}
rows = ActiveRecord::Base.connection.select_all %{
select uuid, owner_uuid, name from #{table} order by owner_uuid, name
}