mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-24 00:54:02 -05:00
15 lines
374 B
Ruby
15 lines
374 B
Ruby
# frozen_string_literal: true
|
|
|
|
class ResetUniqueJobsLocks < ActiveRecord::Migration[5.2]
|
|
disable_ddl_transaction!
|
|
|
|
def up
|
|
# We do this to clean up unique job digests that were not properly
|
|
# disposed of prior to https://github.com/mastodon/mastodon/pull/13361
|
|
|
|
until SidekiqUniqueJobs::Digests.new.delete_by_pattern('*').nil?; end
|
|
end
|
|
|
|
def down; end
|
|
end
|