Merge branch '11842-crunchstat-summary-dygraphs'
[arvados.git] / services / api / db / migrate / 20140627210837_anonymous_group.rb
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 class AnonymousGroup < ActiveRecord::Migration
6   include CurrentApiClient
7
8   def up
9     # create the anonymous group and user
10     anonymous_group
11     anonymous_user
12   end
13
14   def down
15     act_as_system_user do
16       anonymous_user.destroy
17       anonymous_group.destroy
18     end
19   end
20
21 end