X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/9d11f5c700cc7b44bd592eeb80abef1fa9f5d45e..a9b9c6ff05e0268570b829bd62a6f683cf9f1d19:/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..96cf00bbce 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 @@ -class ChangeUserOwnerUuidNotNull < ActiveRecord::Migration +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + +class ChangeUserOwnerUuidNotNull < ActiveRecord::Migration[4.2] + include CurrentApiClient + def up User.update_all({owner_uuid: system_user_uuid}, 'owner_uuid is null') change_column :users, :owner_uuid, :string, :null => false