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
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