4233: "helper" method for replaying a job log from a specified file, with utility...
[arvados.git] / services / api / lib / current_api_client.rb
index 37039ee65444650c94470dd48e9b166bc67568b0..4c26010d2a4a3c0e6c38ae7911c2c9eb84eb822f 100644 (file)
@@ -173,12 +173,8 @@ module CurrentApiClient
       act_as_system_user do
         ActiveRecord::Base.transaction do
           $empty_collection = Collection.
-            where(uuid: empty_collection_uuid).
-            first_or_create!(manifest_text: '')
-          Link.where(tail_uuid: anonymous_group.uuid,
-                     head_uuid: empty_collection_uuid,
-                     link_class: 'permission',
-                     name: 'can_read').first_or_create!
+            where(portable_data_hash: empty_collection_uuid).
+            first_or_create!(manifest_text: '', owner_uuid: anonymous_group.uuid)
         end
       end
     end