1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
5 class ChangeUserOwnerUuidNotNull < ActiveRecord::Migration[4.2]
6 include CurrentApiClient
9 User.update_all({owner_uuid: system_user_uuid}, 'owner_uuid is null')
10 change_column :users, :owner_uuid, :string, :null => false
14 change_column :users, :owner_uuid, :string, :null => true