4019: Add index for efficient jsonb query on collection properties
[arvados.git] / services / api / db / migrate / 20150203180223_set_group_class_on_anonymous_group.rb
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 class SetGroupClassOnAnonymousGroup < ActiveRecord::Migration
6   include CurrentApiClient
7   def up
8     act_as_system_user do
9       anonymous_group.update_attributes group_class: 'role', name: 'Anonymous users', description: 'Anonymous users'
10     end
11   end
12
13   def down
14     act_as_system_user do
15       anonymous_group.update_attributes group_class: nil, name: 'Anonymous group', description: 'Anonymous group'
16     end
17   end
18 end