summaryrefslogtreecommitdiff
path: root/db/migrate/20180511090724_add_index_on_ci_runners_runner_type.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20180511090724_add_index_on_ci_runners_runner_type.rb')
-rw-r--r--db/migrate/20180511090724_add_index_on_ci_runners_runner_type.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/db/migrate/20180511090724_add_index_on_ci_runners_runner_type.rb b/db/migrate/20180511090724_add_index_on_ci_runners_runner_type.rb
new file mode 100644
index 00000000000..580f56007c7
--- /dev/null
+++ b/db/migrate/20180511090724_add_index_on_ci_runners_runner_type.rb
@@ -0,0 +1,15 @@
+class AddIndexOnCiRunnersRunnerType < ActiveRecord::Migration
+ include Gitlab::Database::MigrationHelpers
+
+ DOWNTIME = false
+
+ disable_ddl_transaction!
+
+ def up
+ add_concurrent_index :ci_runners, :runner_type
+ end
+
+ def down
+ remove_index :ci_runners, :runner_type
+ end
+end