Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20170822101017_migrate_pipeline_sidekiq_queues.rb « post_migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8441cfe796891beb82141dbdcd562e392aea0869 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class MigratePipelineSidekiqQueues < ActiveRecord::Migration
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  def up
    sidekiq_queue_migrate 'build', to: 'pipeline_default'
    sidekiq_queue_migrate 'pipeline', to: 'pipeline_default'
  end

  def down
    sidekiq_queue_migrate 'pipeline_default', to: 'pipeline'
    sidekiq_queue_migrate 'pipeline_processing', to: 'pipeline'
    sidekiq_queue_migrate 'pipeline_hooks', to: 'pipeline'
    sidekiq_queue_migrate 'pipeline_cache', to: 'pipeline'
  end
end