From 9119ff7416f1ec89463b78354a05323d0479b05a Mon Sep 17 00:00:00 2001 From: ayuki_j <19406594+ayuki-joto@users.noreply.github.com> Date: Tue, 9 Jul 2024 20:32:41 +0900 Subject: [PATCH] feat: update destroy organization --- app/commands/decidim/organizations/destroy_organization.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/commands/decidim/organizations/destroy_organization.rb b/app/commands/decidim/organizations/destroy_organization.rb index b48f7b309..0009ac846 100644 --- a/app/commands/decidim/organizations/destroy_organization.rb +++ b/app/commands/decidim/organizations/destroy_organization.rb @@ -33,6 +33,10 @@ def call end end + Decidim::TermCustomizer::Constraint.where(organization: organization).delete_all + + Decidim::EditorImage.where(organization: organization).delete_all + Decidim::DecidimAwesome::EditorImage.where(organization: organization).delete_all Decidim::ActionLog.where(organization: organization).delete_all