8784: Fix test for latest firefox.
[arvados.git] / services / api / db / migrate / 20140918141529_change_user_owner_uuid_not_null.rb
1 class ChangeUserOwnerUuidNotNull < ActiveRecord::Migration
2   include CurrentApiClient
3
4   def up
5     User.update_all({owner_uuid: system_user_uuid}, 'owner_uuid is null')
6     change_column :users, :owner_uuid, :string, :null => false
7   end
8
9   def down
10     change_column :users, :owner_uuid, :string, :null => true
11   end
12 end