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

20210617180131_migrate_usage_ping_sidekiq_queue.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9eebc6feb1474b69a953406e7c312413739747f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

class MigrateUsagePingSidekiqQueue < ActiveRecord::Migration[6.1]
  include Gitlab::Database::MigrationHelpers

  # rubocop:disable Migration/SidekiqQueueMigrate
  def up
    sidekiq_queue_migrate 'cronjob:gitlab_usage_ping', to: 'cronjob:gitlab_service_ping'
  end

  def down
    sidekiq_queue_migrate 'cronjob:gitlab_service_ping', to: 'cronjob:gitlab_usage_ping'
  end
  # rubocop:enable Migration/SidekiqQueueMigrate
end