Skip to content

Commit

Permalink
Merge pull request #4237 from rubyforgood/event-clear
Browse files Browse the repository at this point in the history
Clear events again
  • Loading branch information
awwaiid authored Mar 31, 2024
2 parents 17d91af + 6121c0e commit b79e130
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions db/migrate/20240331141135_clear_events_again.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
class ClearEventsAgain < ActiveRecord::Migration[7.0]
def change
InventoryDiscrepancy.delete_all
Event.delete_all
Organization.all.each do |org|
SnapshotEvent.publish(org)
end
end
end

0 comments on commit b79e130

Please sign in to comment.