blob: 3ffdeb0aa8aadae73736df1adc9e25f9b44d1c76 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
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/tootsuite/mastodon/pull/13361
SidekiqUniqueJobs::Digests.delete_by_pattern('*', count: SidekiqUniqueJobs::Digests.count)
end
def down; end
end
|