3072: anonymous group can_read empty collection
[arvados.git] / services / api / db / migrate / 20140714184006_empty_collection.rb
index 2afd582245807faf42f0fc437e94d93b472f682a..deb6bf0374ca76d73427c1da3e03898eaf667e5d 100644 (file)
@@ -2,12 +2,13 @@ class EmptyCollection < ActiveRecord::Migration
   include CurrentApiClient
 
   def up
-    empty_collection
+    act_as_system_user do
+      empty_collection
+    end
   end
 
   def down
-    act_as_system_user do
-      empty_collection.destroy
-    end
+    # do nothing when migrating down (having the empty collection
+    # and a permission link for it is harmless)
   end
 end