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

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

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

  DOWNTIME = false

  disable_ddl_transaction!

  def up
    add_concurrent_index :pages_domains, :wildcard
    add_concurrent_index :pages_domains, :domain_type
  end

  def down
    remove_concurrent_index :pages_domains, :wildcard
    remove_concurrent_index :pages_domains, :domain_type
  end
end