20151210125931_add_index_to_ci_tables.rb 462 Bytes
Newer Older
1
# rubocop:disable all
2
class AddIndexToCiTables < ActiveRecord::Migration[4.2]
3
  def change
4 5 6 7
    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
Kamil Trzcinski's avatar
Kamil Trzcinski committed
8
    add_index :projects, :runners_token
9 10
    add_index :projects, :builds_enabled
    add_index :projects, [:builds_enabled, :shared_runners_enabled]
Kamil Trzcinski's avatar
Kamil Trzcinski committed
11
    add_index :projects, [:ci_id]
12 13
  end
end