Skip to content

Commit

Permalink
once more
Browse files Browse the repository at this point in the history
  • Loading branch information
epugh committed Sep 13, 2023
1 parent 62a65da commit fe55582
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@ def change

# Discovered that there are tries that have null case's from 2016. We need to clean this up.

puts "Found #{Try.all.where(case_id: nil).count} bogus tries to destroy."

Try.all.where(case_id: nil) do |try|
t.destroy!
end

puts "Now, found #{Try.all.where(case_id: nil).count} bogus tries to destroy."


Try.all.each do |try|

Expand Down

0 comments on commit fe55582

Please sign in to comment.