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

20180306074045_migrate_create_trace_artifact_sidekiq_queue.rb « post_migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0af1c3bc0a5d40c5aa0d9ebe36ac0ee6614c4f84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
class MigrateCreateTraceArtifactSidekiqQueue < ActiveRecord::Migration
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  def up
    sidekiq_queue_migrate 'pipeline_default:create_trace_artifact', to: 'pipeline_background:archive_trace'
  end

  def down
    sidekiq_queue_migrate 'pipeline_background:archive_trace', to: 'pipeline_default:create_trace_artifact'
  end
end