Skip to content

Commit 73b8781

Browse files
committed
Delete invalid assess testruns
Amends 264927e
1 parent 185d5d3 commit 73b8781

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# frozen_string_literal: true
2+
3+
class DeleteInvalidAssessTestruns < ActiveRecord::Migration[8.0]
4+
class Testrun < ApplicationRecord
5+
end
6+
7+
disable_ddl_transaction!
8+
9+
def change
10+
# In commit 9c3ec3c (2023-02-17), we introduced a bug, which added an additional undesired assess testrun with no 'passed' value.
11+
# We fixed this bug in 264927e (2023-07-15), but haven't removed the invalid testruns yet.
12+
Testrun.where(cause: 'assess', passed: nil, file_id: nil).delete_all
13+
end
14+
end

db/schema.rb

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)