Skip to content

Commit e1b9ee6

Browse files
authored
Merge pull request #4588 from rubyforgood/event-source-reset
Reset all remaining organizations
2 parents c14b498 + b3258d6 commit e1b9ee6

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
class ClearEventsWithFeeling < ActiveRecord::Migration[7.1]
2+
def change
3+
no_change_ids = [9, 33, 155]
4+
Event.where.not(organization_id: no_change_ids).delete_all
5+
Organization.where.not(organization_id: no_change_ids).all.each do |org|
6+
SnapshotEvent.publish(org)
7+
end
8+
end
9+
end

0 commit comments

Comments
 (0)