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

20151204110832_add_index_to_ci_tables.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9fedb5d612ce3c801487b761de65207336a0af4f (plain)
1
2
3
4
5
6
7
8
9
10
11
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