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
343 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/mastodon/mastodon/pull/13361
  6. until SidekiqUniqueJobs::Digests.new.delete_by_pattern('*').nil?; end
  7. end
  8. def down; end
  9. end