Skip to content

Commit

Permalink
Slight bugfix on migration (#4589)
Browse files Browse the repository at this point in the history
  • Loading branch information
awwaiid authored Aug 11, 2024
1 parent e1b9ee6 commit d648cb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/migrate/20240811140508_clear_events_with_feeling.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d648cb3

Please sign in to comment.