projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Bug fix: migration requires CurrentApiClient
[arvados.git]
/
services
/
api
/
db
/
migrate
/
20140918141529_change_user_owner_uuid_not_null.rb
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 0712ecd0bdf20ad4c3c452796dccab73be013c49..683e5c79654d042eb9a29826ba38d0361f279c23 100644
(file)
--- 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,6
@@
class ChangeUserOwnerUuidNotNull < ActiveRecord::Migration
+ include CurrentApiClient
+
def up
User.update_all({owner_uuid: system_user_uuid}, 'owner_uuid is null')
change_column :users, :owner_uuid, :string, :null => false