projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
3072: anonymous group can_read empty collection
[arvados.git]
/
services
/
api
/
db
/
migrate
/
20140714184006_empty_collection.rb
diff --git
a/services/api/db/migrate/20140714184006_empty_collection.rb
b/services/api/db/migrate/20140714184006_empty_collection.rb
index 2afd582245807faf42f0fc437e94d93b472f682a..deb6bf0374ca76d73427c1da3e03898eaf667e5d 100644
(file)
--- a/
services/api/db/migrate/20140714184006_empty_collection.rb
+++ b/
services/api/db/migrate/20140714184006_empty_collection.rb
@@
-2,12
+2,13
@@
class EmptyCollection < ActiveRecord::Migration
include CurrentApiClient
def up
include CurrentApiClient
def up
- empty_collection
+ act_as_system_user do
+ empty_collection
+ end
end
def down
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
end
end