projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
14484: Fixes grouping bug by simplifying nested pdhs arrays
[arvados.git]
/
services
/
api
/
db
/
migrate
/
20190322174136_add_file_info_to_collection.rb
diff --git
a/services/api/db/migrate/20190322174136_add_file_info_to_collection.rb
b/services/api/db/migrate/20190322174136_add_file_info_to_collection.rb
index c55840432d6aeeba0e70948f0cc0adc7aba858d5..e12e508be7ea10fd061f17007ec95a72aacdfe5b 100755
(executable)
--- a/
services/api/db/migrate/20190322174136_add_file_info_to_collection.rb
+++ b/
services/api/db/migrate/20190322174136_add_file_info_to_collection.rb
@@
-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(