Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20231120161159_prepare_index_for_org_id_and_id_on_projects.rb « post_migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1a49f8ee43f62ba4789d331af50995f288d7909d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

class PrepareIndexForOrgIdAndIdOnProjects < Gitlab::Database::Migration[2.2]
  milestone '16.7'

  INDEX_NAME = 'index_projects_on_organization_id_and_id'

  def up
    prepare_async_index :projects, [:organization_id, :id], name: INDEX_NAME
  end

  def down
    unprepare_async_index :projects, [:organization_id, :id], name: INDEX_NAME
  end
end