Fix team deletion script [SCI-3960]

This commit is contained in:
Oleksii Kriuchykhin 2019-10-08 12:02:45 +02:00
parent b752f32444
commit 6908a5c3a3

View file

@ -52,10 +52,10 @@ class UserDataDeletion
end
my_module.delete
end
# Destroy workflow image
if experiment.workflowimg.exists?
experiment.workflowimg.clear(:original)
end
experiment.workflowimg.purge
experiment.activities.destroy_all
experiment.report_elements.destroy_all
experiment.my_module_groups.delete_all