summaryrefslogtreecommitdiff
path: root/db/migrate/20210608103230_add_issue_id_to_test_report.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20210608103230_add_issue_id_to_test_report.rb')
-rw-r--r--db/migrate/20210608103230_add_issue_id_to_test_report.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/db/migrate/20210608103230_add_issue_id_to_test_report.rb b/db/migrate/20210608103230_add_issue_id_to_test_report.rb
new file mode 100644
index 00000000000..f4e723d0af8
--- /dev/null
+++ b/db/migrate/20210608103230_add_issue_id_to_test_report.rb
@@ -0,0 +1,17 @@
+# frozen_string_literal: true
+
+class AddIssueIdToTestReport < ActiveRecord::Migration[6.1]
+ include Gitlab::Database::MigrationHelpers
+
+ def up
+ with_lock_retries do
+ add_column :requirements_management_test_reports, :issue_id, :bigint, null: true
+ end
+ end
+
+ def down
+ with_lock_retries do
+ remove_column :requirements_management_test_reports, :issue_id
+ end
+ end
+end