debian-mirror-gitlab/db/migrate/20190710151229_add_index_to_approval_project_rules_rule_type.rb
2019-09-30 21:07:59 +05:30

18 lines
363 B
Ruby

# 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