Add report elements to samples migration [SCI-2505]

This commit is contained in:
Oleksii Kriuchykhin 2018-06-18 15:24:02 +02:00
parent cb7023c18e
commit e6671cf015

View file

@ -105,6 +105,13 @@ namespace :samples_to_repository_migration do
end end
end end
# Update report elements
team.reports.each do |r|
r.report_elements.where(type_of: 7).each do |e|
e.update_attributes(type_of: 17, repository_id: repository.id)
end
end
# Now update smart annotations # Now update smart annotations
migration_service.update_smart_annotations(team, sample_mappings) migration_service.update_smart_annotations(team, sample_mappings)
end end