We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c14b498 + b3258d6 commit e1b9ee6Copy full SHA for e1b9ee6
1 file changed
db/migrate/20240811140508_clear_events_with_feeling.rb
@@ -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
9
+end
0 commit comments