Merge branch 'master' into 3036-collection-uuids
[arvados.git] / services / api / app / models / collection.rb
index 2bf781013bce167ae1a376740ad100cb1c73abf9..c0c2b7ef7d3af5c21e67fb51bebde066907d7276 100644 (file)
@@ -13,10 +13,13 @@ class Collection < ArvadosModel
     t.add :description
     t.add :properties
     t.add :portable_data_hash
+    t.add :manifest_text
   end
 
-  api_accessible :with_data, extend: :user do |t|
-    t.add :manifest_text
+  def self.attributes_required_columns
+    super.merge({ "data_size" => ["manifest_text"],
+                  "files" => ["manifest_text"],
+                })
   end
 
   def set_portable_data_hash