From ede30743942d13776359b323e07e5415af18eb53 Mon Sep 17 00:00:00 2001
From: Arnaud Levy <contact@arnaudlevy.com>
Date: Mon, 3 Jun 2024 12:10:10 +0200
Subject: [PATCH] clean db

---
 lib/tasks/app.rake | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/tasks/app.rake b/lib/tasks/app.rake
index 9971dabae..7f6780f46 100644
--- a/lib/tasks/app.rake
+++ b/lib/tasks/app.rake
@@ -12,6 +12,9 @@ namespace :app do
       heading.set_slug
       heading.update_column :slug, heading.slug
     end
+    # Les blobs ne sont plus connectés
+    # https://github.com/osunyorg/admin/pull/1979
+    Communication::Website::Connection.where(indirect_object_type: "ActiveStorage::Blob").delete_all
   end
 
   namespace :websites do
-- 
GitLab