X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/b48b26080b88f5ebf1caedb5e29bbd509d8427af..d56b21609ddd2e2e096f5c30e991d24aa213f7f4:/services/api/db/migrate/20140818125735_add_not_null_constraint_to_group_name.rb diff --git a/services/api/db/migrate/20140818125735_add_not_null_constraint_to_group_name.rb b/services/api/db/migrate/20140818125735_add_not_null_constraint_to_group_name.rb index 1b074705c3..9f003ba8d6 100644 --- a/services/api/db/migrate/20140818125735_add_not_null_constraint_to_group_name.rb +++ b/services/api/db/migrate/20140818125735_add_not_null_constraint_to_group_name.rb @@ -1,4 +1,8 @@ -class AddNotNullConstraintToGroupName < ActiveRecord::Migration +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + +class AddNotNullConstraintToGroupName < ActiveRecord::Migration[4.2] def change ActiveRecord::Base.connection.execute("update groups set name=uuid where name is null or name=''") change_column_null :groups, :name, false