From d5ad85f979cb292334b0d941ca3c56340fcbf829 Mon Sep 17 00:00:00 2001 From: ayuki_j <19406594+ayuki-joto@users.noreply.github.com> Date: Mon, 8 Apr 2024 22:11:03 +0900 Subject: [PATCH] fix: add Decidim::Verifications::CsvDatum --- app/commands/decidim/organizations/destroy_organization.rb | 2 ++ 1 file changed, 2 insertions(+) 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}"