summaryrefslogtreecommitdiff
path: root/db/migrate/20210608103235_add_issue_index_to_test_report.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-06-17 10:07:47 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-06-17 10:07:47 +0000
commitd670c3006e6e44901bce0d53cc4768d1d80ffa92 (patch)
tree8f65743c232e5b76850c4cc264ba15e1185815ff /db/migrate/20210608103235_add_issue_index_to_test_report.rb
parenta5f4bba440d7f9ea47046a0a561d49adf0a1e6d4 (diff)
downloadgitlab-ce-d670c3006e6e44901bce0d53cc4768d1d80ffa92.tar.gz
Add latest changes from gitlab-org/gitlab@14-0-stable-ee
Diffstat (limited to 'db/migrate/20210608103235_add_issue_index_to_test_report.rb')
-rw-r--r--db/migrate/20210608103235_add_issue_index_to_test_report.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/db/migrate/20210608103235_add_issue_index_to_test_report.rb b/db/migrate/20210608103235_add_issue_index_to_test_report.rb
new file mode 100644
index 00000000000..41f1970b2a9
--- /dev/null
+++ b/db/migrate/20210608103235_add_issue_index_to_test_report.rb
@@ -0,0 +1,17 @@
+# frozen_string_literal: true
+
+class AddIssueIndexToTestReport < ActiveRecord::Migration[6.1]
+ include Gitlab::Database::MigrationHelpers
+
+ disable_ddl_transaction!
+
+ INDEX_NAME = 'index_requirements_management_test_reports_on_issue_id'
+
+ def up
+ add_concurrent_index :requirements_management_test_reports, :issue_id, name: INDEX_NAME
+ end
+
+ def down
+ remove_concurrent_index_by_name :requirements_management_test_reports, INDEX_NAME
+ end
+end