Skip to content
Snippets Groups Projects
Unverified Commit 38b69512 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Fix old unique jobs digests not having been cleaned up (#13683)

parent 66fa9f0a
Branches
Tags
No related merge requests found
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
......@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2020_04_17_125749) do
ActiveRecord::Schema.define(version: 2020_05_08_212852) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment