summaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
authorChantal Rollison <crollison@gitlab.com>2018-08-14 12:44:17 -0700
committerChantal Rollison <crollison@gitlab.com>2018-08-21 08:21:01 -0700
commite9c1f184bcc928c2c44b772b72b0380efe178efc (patch)
tree68a0ab4d8bdff96c428c5e1d625b61d33e1fe749 /db/migrate
parentd2590b154228ed49dd4a949c889fb6234343ec94 (diff)
downloadgitlab-ce-e9c1f184bcc928c2c44b772b72b0380efe178efc.tar.gz
Added count for label, assignee, and milestone listsccr/48800/ping_for_boards
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20180815175440_add_index_on_list_type.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/db/migrate/20180815175440_add_index_on_list_type.rb b/db/migrate/20180815175440_add_index_on_list_type.rb
new file mode 100644
index 00000000000..aad805e436e
--- /dev/null
+++ b/db/migrate/20180815175440_add_index_on_list_type.rb
@@ -0,0 +1,16 @@
+# frozen_string_literal: true
+class AddIndexOnListType < ActiveRecord::Migration
+ include Gitlab::Database::MigrationHelpers
+
+ DOWNTIME = false
+
+ disable_ddl_transaction!
+
+ def up
+ add_concurrent_index :lists, :list_type
+ end
+
+ def down
+ remove_concurrent_index :lists, :list_type
+ end
+end