summaryrefslogtreecommitdiff
path: root/db/migrate/20151210125931_add_index_to_ci_tables.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20151210125931_add_index_to_ci_tables.rb')
-rw-r--r--db/migrate/20151210125931_add_index_to_ci_tables.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/db/migrate/20151210125931_add_index_to_ci_tables.rb b/db/migrate/20151210125931_add_index_to_ci_tables.rb
new file mode 100644
index 00000000000..9fedb5d612c
--- /dev/null
+++ b/db/migrate/20151210125931_add_index_to_ci_tables.rb
@@ -0,0 +1,12 @@
+class AddIndexToCiTables < ActiveRecord::Migration
+ def up
+ add_index :ci_builds, :gl_project_id
+ add_index :ci_runner_projects, :gl_project_id
+ add_index :ci_triggers, :gl_project_id
+ add_index :ci_variables, :gl_project_id
+ add_index :projects, :runners_token
+ add_index :projects, :builds_enabled
+ add_index :projects, [:builds_enabled, :shared_runners_enabled]
+ add_index :projects, [:ci_id]
+ end
+end