summaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2015-10-20 19:41:45 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2015-10-20 19:41:45 +0200
commitf9f6724f552b15982f7c8cd5c3cab5b4b2380468 (patch)
treeb9903c575561c92b05f26d14788400a5e4dfee9f /db/migrate
parent8f4ae40e3c4a93114811637c0a643ae1b7ac86bf (diff)
downloadgitlab-ce-f9f6724f552b15982f7c8cd5c3cab5b4b2380468.tar.gz
Added extra index for faster enumeration of CI buildsadd-missing-migrations
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20151020173906_add_ci_builds_index_for_status.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/db/migrate/20151020173906_add_ci_builds_index_for_status.rb b/db/migrate/20151020173906_add_ci_builds_index_for_status.rb
new file mode 100644
index 00000000000..c3f0e0606da
--- /dev/null
+++ b/db/migrate/20151020173906_add_ci_builds_index_for_status.rb
@@ -0,0 +1,5 @@
+class AddCiBuildsIndexForStatus < ActiveRecord::Migration
+ def change
+ add_index :ci_builds, [:commit_id, :status, :type]
+ end
+end