Merge pull request #2134 from okriuchykhin/ok_SCI_3960

Fix team deletion script [SCI-3960]
This commit is contained in:
Alex Kriuchykhin 2019-10-08 13:35:07 +02:00 committed by GitHub
commit f82d02b5d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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