diff options
Diffstat (limited to 'db/migrate/20200325183636_add_api_index_for_internal_projects.rb')
-rw-r--r-- | db/migrate/20200325183636_add_api_index_for_internal_projects.rb | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/db/migrate/20200325183636_add_api_index_for_internal_projects.rb b/db/migrate/20200325183636_add_api_index_for_internal_projects.rb deleted file mode 100644 index ce47f1f3ded..00000000000 --- a/db/migrate/20200325183636_add_api_index_for_internal_projects.rb +++ /dev/null @@ -1,21 +0,0 @@ -# frozen_string_literal: true - -class AddApiIndexForInternalProjects < ActiveRecord::Migration[6.0] - include Gitlab::Database::MigrationHelpers - - DOWNTIME = false - - INTERNAL_PROJECTS_INDEX_NAME = "index_projects_api_created_at_id_for_vis10" - - disable_ddl_transaction! - - def up - add_concurrent_index :projects, [:created_at, :id], - where: "visibility_level = 10 AND pending_delete = false", - name: INTERNAL_PROJECTS_INDEX_NAME - end - - def down - remove_concurrent_index_by_name :projects, INTERNAL_PROJECTS_INDEX_NAME - end -end |