diff options
Diffstat (limited to 'db/migrate/20230925095300_remove_deprecated_delete_container_repository_worker_job_instances.rb')
-rw-r--r-- | db/migrate/20230925095300_remove_deprecated_delete_container_repository_worker_job_instances.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/db/migrate/20230925095300_remove_deprecated_delete_container_repository_worker_job_instances.rb b/db/migrate/20230925095300_remove_deprecated_delete_container_repository_worker_job_instances.rb new file mode 100644 index 00000000000..465106d907d --- /dev/null +++ b/db/migrate/20230925095300_remove_deprecated_delete_container_repository_worker_job_instances.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +class RemoveDeprecatedDeleteContainerRepositoryWorkerJobInstances < Gitlab::Database::Migration[2.1] + DEPRECATED_JOB_CLASSES = %w[DeleteContainerRepositoryWorker].freeze + + disable_ddl_transaction! + + 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 |