14484: Fixes grouping bug by simplifying nested pdhs arrays
[arvados.git] / services / api / db / migrate / 20190322174136_add_file_info_to_collection.rb
index c55840432d6aeeba0e70948f0cc0adc7aba858d5..e12e508be7ea10fd061f17007ec95a72aacdfe5b 100755 (executable)
@@ -6,7 +6,7 @@ class AddFileInfoToCollection < ActiveRecord::Migration
   def do_batch(pdhs)
     pdhs_str = ''
     pdhs.each do |pdh|
-      pdhs_str << "'" << pdh[0] << "'" << ','
+      pdhs_str << "'" << pdh << "'" << ','
     end
 
     collections = ActiveRecord::Base.connection.exec_query(