2023-07-12 08:47:08 +01:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-05-09 17:37:39 +01:00
|
|
|
class ResetUniqueJobsLocks < ActiveRecord::Migration[5.2]
|
|
|
|
disable_ddl_transaction!
|
|
|
|
|
|
|
|
def up
|
|
|
|
# We do this to clean up unique job digests that were not properly
|
2021-07-13 14:46:20 +01:00
|
|
|
# disposed of prior to https://github.com/mastodon/mastodon/pull/13361
|
2020-05-09 17:37:39 +01:00
|
|
|
|
2021-03-12 04:39:58 +00:00
|
|
|
until SidekiqUniqueJobs::Digests.new.delete_by_pattern('*').nil?; end
|
2020-05-09 17:37:39 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
def down; end
|
|
|
|
end
|