X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/4154420cdd2a2ac6cdb2cc57357f42513fb287cc..9881b1dc0b51b0a5da6dfd92fbe3a903c7330e99:/services/api/db/migrate/20140918141529_change_user_owner_uuid_not_null.rb?ds=sidebyside 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