mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-20 23:16:15 +08:00
Fix team deletion script [SCI-3960]
This commit is contained in:
parent
b752f32444
commit
6908a5c3a3
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue