From 1bf4ac000500eab62208fb35ad2e933fde4dc868 Mon Sep 17 00:00:00 2001 From: Daniel Orner Date: Sun, 12 May 2024 10:10:17 -0400 Subject: [PATCH] Clear events again! --- db/migrate/20240512140954_clear_events_once_again.rb | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 db/migrate/20240512140954_clear_events_once_again.rb diff --git a/db/migrate/20240512140954_clear_events_once_again.rb b/db/migrate/20240512140954_clear_events_once_again.rb new file mode 100644 index 0000000000..1750106901 --- /dev/null +++ b/db/migrate/20240512140954_clear_events_once_again.rb @@ -0,0 +1,8 @@ +class ClearEventsOnceAgain < ActiveRecord::Migration[7.0] + def change + Event.delete_all + Organization.all.each do |org| + SnapshotEvent.publish(org) + end + end +end