1
0
Fork 0
forked from fedi/mastodon
mastodon/db/migrate/20200508212852_reset_unique_jobs_locks.rb

13 lines
365 B
Ruby
Raw Normal View History

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