You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
365 B

  1. class ResetUniqueJobsLocks < ActiveRecord::Migration[5.2]
  2. disable_ddl_transaction!
  3. def up
  4. # We do this to clean up unique job digests that were not properly
  5. # disposed of prior to https://github.com/tootsuite/mastodon/pull/13361
  6. SidekiqUniqueJobs::Digests.delete_by_pattern('*', count: SidekiqUniqueJobs::Digests.count)
  7. end
  8. def down; end
  9. end