diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-28 18:08:36 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-28 18:08:36 +0300 |
commit | ee7db70e1185876e97eca97ce8efabfc64c360b9 (patch) | |
tree | 4c09297635be43c0189a2a85dd2a38d5f72bc523 /db/migrate/20230307212637_remove_create_learn_gitlab_worker_job_instances.rb | |
parent | 3fa33c82f9c49f4b53ddcf017fe77f1bff48a460 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'db/migrate/20230307212637_remove_create_learn_gitlab_worker_job_instances.rb')
-rw-r--r-- | db/migrate/20230307212637_remove_create_learn_gitlab_worker_job_instances.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/20230307212637_remove_create_learn_gitlab_worker_job_instances.rb b/db/migrate/20230307212637_remove_create_learn_gitlab_worker_job_instances.rb new file mode 100644 index 00000000000..d3b6ee2ffd8 --- /dev/null +++ b/db/migrate/20230307212637_remove_create_learn_gitlab_worker_job_instances.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +class RemoveCreateLearnGitlabWorkerJobInstances < Gitlab::Database::Migration[2.1] + DEPRECATED_JOB_CLASSES = %w[Onboarding::CreateLearnGitlabWorker] + + def up + sidekiq_remove_jobs(job_klasses: DEPRECATED_JOB_CLASSES) + end + + def down + # This migration removes any instances of deprecated workers and cannot be undone. + end +end |