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