summaryrefslogtreecommitdiff
path: root/db/migrate/20190710151229_add_index_to_approval_project_rules_rule_type.rb
blob: 64123c53c4a8893389c7601159d9c62f9576b651 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

class AddIndexToApprovalProjectRulesRuleType < ActiveRecord::Migration[5.1]
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  disable_ddl_transaction!

  def up
    add_concurrent_index :approval_project_rules, :rule_type
  end

  def down
    remove_concurrent_index :approval_project_rules, :rule_type
  end
end