summaryrefslogtreecommitdiff
path: root/db/migrate/20200304090155_add_user_type_index.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20200304090155_add_user_type_index.rb')
-rw-r--r--db/migrate/20200304090155_add_user_type_index.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/db/migrate/20200304090155_add_user_type_index.rb b/db/migrate/20200304090155_add_user_type_index.rb
new file mode 100644
index 00000000000..cd3b87d0a45
--- /dev/null
+++ b/db/migrate/20200304090155_add_user_type_index.rb
@@ -0,0 +1,17 @@
+# frozen_string_literal: true
+
+class AddUserTypeIndex < ActiveRecord::Migration[6.0]
+ include Gitlab::Database::MigrationHelpers
+
+ DOWNTIME = false
+
+ disable_ddl_transaction!
+
+ def up
+ add_concurrent_index :users, :user_type
+ end
+
+ def down
+ remove_concurrent_index :users, :user_type
+ end
+end