diff --git a/app/commands/decidim/organizations/destroy_organization.rb b/app/commands/decidim/organizations/destroy_organization.rb index 7c5a981bd..b48f7b309 100644 --- a/app/commands/decidim/organizations/destroy_organization.rb +++ b/app/commands/decidim/organizations/destroy_organization.rb @@ -24,6 +24,8 @@ def call end end + Decidim::Verifications::CsvDatum.where(organization: organization).delete_all + Decidim::Verifications::Conflict.find_each do |conflict| if conflict.current_user.organization == organization || conflict.managed_user.organization == organization puts "destroy verifications_conflict id: #{conflict.id}"