diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-18 14:18:50 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-18 14:18:50 +0300 |
commit | 8c7f4e9d5f36cff46365a7f8c4b9c21578c1e781 (patch) | |
tree | a77e7fe7a93de11213032ed4ab1f33a3db51b738 /db/migrate/20180524132016_merge_requests_target_id_iid_state_partial_index.rb | |
parent | 00b35af3db1abfe813a778f643dad221aad51fca (diff) |
Add latest changes from gitlab-org/gitlab@13-1-stable-ee
Diffstat (limited to 'db/migrate/20180524132016_merge_requests_target_id_iid_state_partial_index.rb')
-rw-r--r-- | db/migrate/20180524132016_merge_requests_target_id_iid_state_partial_index.rb | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/db/migrate/20180524132016_merge_requests_target_id_iid_state_partial_index.rb b/db/migrate/20180524132016_merge_requests_target_id_iid_state_partial_index.rb deleted file mode 100644 index bff4690427e..00000000000 --- a/db/migrate/20180524132016_merge_requests_target_id_iid_state_partial_index.rb +++ /dev/null @@ -1,27 +0,0 @@ -# See http://doc.gitlab.com/ce/development/migration_style_guide.html -# for more information on how to write migrations for GitLab. - -class MergeRequestsTargetIdIidStatePartialIndex < ActiveRecord::Migration[4.2] - include Gitlab::Database::MigrationHelpers - - # Set this constant to true if this migration requires downtime. - DOWNTIME = false - - INDEX_NAME = 'index_merge_requests_on_target_project_id_and_iid_opened' - - disable_ddl_transaction! - - def up - # On GitLab.com this index will take up roughly 5 MB of space. - add_concurrent_index( - :merge_requests, - [:target_project_id, :iid], - where: "state = 'opened'", - name: INDEX_NAME - ) - end - - def down - remove_concurrent_index_by_name(:merge_requests, INDEX_NAME) - end -end |