discourse/db/migrate/20160303183607_clear_common_passwords_cache.rb

8 lines
185 B
Ruby
Raw Normal View History

2016-04-01 05:33:25 +08:00
require "common_passwords/common_passwords"
class ClearCommonPasswordsCache < ActiveRecord::Migration
def change
$redis.without_namespace.del CommonPasswords::LIST_KEY
end
end