mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-27 14:13:42 +01:00
12 lines
365 B
Ruby
12 lines
365 B
Ruby
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
|