1 class ChangeUserOwnerUuidNotNull < ActiveRecord::Migration
2 include CurrentApiClient
5 User.update_all({owner_uuid: system_user_uuid}, 'owner_uuid is null')
6 change_column :users, :owner_uuid, :string, :null => false
10 change_column :users, :owner_uuid, :string, :null => true