diff options
author | Lucas Charles <me@lucascharles.me> | 2019-07-17 20:43:35 +0300 |
---|---|---|
committer | Mayra Cabrera <mcabrera@gitlab.com> | 2019-07-17 20:43:35 +0300 |
commit | 1b9dbef3fd2e90cb094b1228a00e8e8d6ee800da (patch) | |
tree | 0e2f7e61006979ea4524a4e4efd28347b441cf99 /db/migrate/20190710151229_add_index_to_approval_project_rules_rule_type.rb | |
parent | 2860cfaaff0a435792081b72a5f97de85e0d4f70 (diff) |
Add rule_type to approval_project_rules
Adds migration to introduce non-regular rule_types to
approval_project_rules
Diffstat (limited to 'db/migrate/20190710151229_add_index_to_approval_project_rules_rule_type.rb')
-rw-r--r-- | db/migrate/20190710151229_add_index_to_approval_project_rules_rule_type.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/db/migrate/20190710151229_add_index_to_approval_project_rules_rule_type.rb b/db/migrate/20190710151229_add_index_to_approval_project_rules_rule_type.rb new file mode 100644 index 00000000000..64123c53c4a --- /dev/null +++ b/db/migrate/20190710151229_add_index_to_approval_project_rules_rule_type.rb @@ -0,0 +1,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 |