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