From d648cb3fad29456633a927226bd1f0453e4e405c Mon Sep 17 00:00:00 2001 From: Brock Wilcox Date: Sun, 11 Aug 2024 10:22:52 -0400 Subject: [PATCH] Slight bugfix on migration (#4589) --- db/migrate/20240811140508_clear_events_with_feeling.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20240811140508_clear_events_with_feeling.rb b/db/migrate/20240811140508_clear_events_with_feeling.rb index aee2e838d3..ca73b8012b 100644 --- a/db/migrate/20240811140508_clear_events_with_feeling.rb +++ b/db/migrate/20240811140508_clear_events_with_feeling.rb @@ -2,7 +2,7 @@ class ClearEventsWithFeeling < ActiveRecord::Migration[7.1] def change no_change_ids = [9, 33, 155] Event.where.not(organization_id: no_change_ids).delete_all - Organization.where.not(organization_id: no_change_ids).all.each do |org| + Organization.where.not(id: no_change_ids).all.each do |org| SnapshotEvent.publish(org) end end