Merge branch '3605-queue-position-size' refs #3605
[arvados.git] / services / api / db / migrate / 20140918141529_change_user_owner_uuid_not_null.rb
1 class ChangeUserOwnerUuidNotNull < ActiveRecord::Migration
2   def up
3     User.update_all({owner_uuid: system_user_uuid}, 'owner_uuid is null')
4     change_column :users, :owner_uuid, :string, :null => false
5   end
6
7   def down
8     change_column :users, :owner_uuid, :string, :null => true
9   end
10 end