Merge branch '15286-fixes'
[arvados.git] / services / api / db / migrate / 20140714184006_empty_collection.rb
index 2afd582245807faf42f0fc437e94d93b472f682a..33921dcdeaeaecd8c9e874152cbd2f22788ac525 100644 (file)
@@ -1,4 +1,8 @@
-class EmptyCollection < ActiveRecord::Migration
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
+class EmptyCollection < ActiveRecord::Migration[4.2]
   include CurrentApiClient
 
   def up
@@ -6,8 +10,7 @@ class EmptyCollection < ActiveRecord::Migration
   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