summaryrefslogtreecommitdiff
path: root/db/migrate/20151210125931_add_index_to_ci_tables.rb
blob: 2cbc5b505388275a873a2c6cf66bfe2998f674ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# rubocop:disable all
class AddIndexToCiTables < ActiveRecord::Migration[4.2]
  def change
    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