Merge branch 'master' into 9956-keepstore-config
[arvados.git] / services / api / db / migrate / 20150203180223_set_group_class_on_anonymous_group.rb
1 class SetGroupClassOnAnonymousGroup < ActiveRecord::Migration
2   include CurrentApiClient
3   def up
4     act_as_system_user do
5       anonymous_group.update_attributes group_class: 'role', name: 'Anonymous users', description: 'Anonymous users'
6     end
7   end
8
9   def down
10     act_as_system_user do
11       anonymous_group.update_attributes group_class: nil, name: 'Anonymous group', description: 'Anonymous group'
12     end
13   end
14 end