X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/4c8ec1b2166a81b05b2b6cf5a6fae5b839876802..067a7263a97e1b4d96ee6572e79884bdcd937bbf:/services/api/db/migrate/20140918141529_change_user_owner_uuid_not_null.rb diff --git a/services/api/db/migrate/20140918141529_change_user_owner_uuid_not_null.rb b/services/api/db/migrate/20140918141529_change_user_owner_uuid_not_null.rb index 0712ecd0bd..c111708e9b 100644 --- a/services/api/db/migrate/20140918141529_change_user_owner_uuid_not_null.rb +++ b/services/api/db/migrate/20140918141529_change_user_owner_uuid_not_null.rb @@ -1,4 +1,10 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + class ChangeUserOwnerUuidNotNull < ActiveRecord::Migration + include CurrentApiClient + def up User.update_all({owner_uuid: system_user_uuid}, 'owner_uuid is null') change_column :users, :owner_uuid, :string, :null => false