X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f4ca9ad94a6bb006d1f3c7ba207837f1736d1247..82a9595a6a35c648fff62c2497d858f1ab062578:/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