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

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

class RemoveProjectIdIndexOnLfsObjectsProjects < ActiveRecord::Migration[5.2]
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  disable_ddl_transaction!

  def up
    remove_concurrent_index :lfs_objects_projects, :project_id
  end

  def down
    add_concurrent_index :lfs_objects_projects, :project_id
  end
end