diff options
Diffstat (limited to 'db/migrate/20180901171833_add_project_config_source_status_index_to_pipeline.rb')
-rw-r--r-- | db/migrate/20180901171833_add_project_config_source_status_index_to_pipeline.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/db/migrate/20180901171833_add_project_config_source_status_index_to_pipeline.rb b/db/migrate/20180901171833_add_project_config_source_status_index_to_pipeline.rb new file mode 100644 index 00000000000..99dfcc94b12 --- /dev/null +++ b/db/migrate/20180901171833_add_project_config_source_status_index_to_pipeline.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +class AddProjectConfigSourceStatusIndexToPipeline < ActiveRecord::Migration + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + disable_ddl_transaction! + + def up + add_concurrent_index :ci_pipelines, [:project_id, :status, :config_source] + end + + def down + remove_concurrent_index :ci_pipelines, [:project_id, :status, :config_source] + end +end |