Skip to content

Commit

Permalink
Clear events again
Browse files Browse the repository at this point in the history
  • Loading branch information
dorner committed Mar 31, 2024
1 parent 17d91af commit 6121c0e
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 6121c0e

Please sign in to comment.