Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2015-10-16 22:58:30 +0300
committerYorick Peterse <yorickpeterse@gmail.com>2015-10-16 22:58:30 +0300
commitf405954764b8bea32e54b3cf59e06a5469781bf3 (patch)
treed0d79292b725787861fe239f37e7aa6caf53393a /db/migrate/20151016195451_add_ci_builds_and_projects_indexes.rb
parentb39860b01bd8055b26503d173e37ebae7150c783 (diff)
Added indexes for notes.line_code and CI columns
This adds indexes for the following columns: * notes.line_code * ci_projects.gitlab_id * ci_projects.shared_runners_enabled * ci_builds.type * ci_builds.status
Diffstat (limited to 'db/migrate/20151016195451_add_ci_builds_and_projects_indexes.rb')
-rw-r--r--db/migrate/20151016195451_add_ci_builds_and_projects_indexes.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20151016195451_add_ci_builds_and_projects_indexes.rb b/db/migrate/20151016195451_add_ci_builds_and_projects_indexes.rb
new file mode 100644
index 00000000000..7f1af1c7583
--- /dev/null
+++ b/db/migrate/20151016195451_add_ci_builds_and_projects_indexes.rb
@@ -0,0 +1,9 @@
+class AddCiBuildsAndProjectsIndexes < ActiveRecord::Migration
+ def change
+ add_index :ci_projects, :gitlab_id
+ add_index :ci_projects, :shared_runners_enabled
+
+ add_index :ci_builds, :type
+ add_index :ci_builds, :status
+ end
+end