2016-06-16 23:09:34 +05:30
|
|
|
# rubocop:disable all
|
2019-02-15 15:39:39 +05:30
|
|
|
class AddIndexToCiTables < ActiveRecord::Migration[4.2]
|
2016-01-14 18:37:52 +05:30
|
|
|
def change
|
2015-12-23 02:04:40 +05:30
|
|
|
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
|