2016-06-09 08:39:16 -04:00
|
|
|
# rubocop:disable all
|
2018-11-13 02:27:31 -05:00
|
|
|
class AddIndexToCiTables < ActiveRecord::Migration[4.2]
|
2015-12-23 13:39:44 -05:00
|
|
|
def change
|
2015-12-04 06:55:23 -05:00
|
|
|
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
|
2015-12-10 11:29:44 -05:00
|
|
|
add_index :projects, :runners_token
|
2015-12-04 06:55:23 -05:00
|
|
|
add_index :projects, :builds_enabled
|
|
|
|
add_index :projects, [:builds_enabled, :shared_runners_enabled]
|
2015-12-10 11:29:44 -05:00
|
|
|
add_index :projects, [:ci_id]
|
2015-12-04 06:55:23 -05:00
|
|
|
end
|
|
|
|
end
|