From f9f6724f552b15982f7c8cd5c3cab5b4b2380468 Mon Sep 17 00:00:00 2001 From: Kamil Trzcinski Date: Tue, 20 Oct 2015 19:41:45 +0200 Subject: Added extra index for faster enumeration of CI builds --- db/migrate/20151020173906_add_ci_builds_index_for_status.rb | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 db/migrate/20151020173906_add_ci_builds_index_for_status.rb (limited to 'db/migrate') 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 -- cgit v1.2.1