mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 00:43:43 +08:00
0d3d2c43a0
This commit also adds a rubocop rule to prevent global variables.
10 lines
230 B
Ruby
10 lines
230 B
Ruby
# frozen_string_literal: true
|
|
|
|
require "common_passwords/common_passwords"
|
|
|
|
class ClearCommonPasswordsCache < ActiveRecord::Migration[4.2]
|
|
def change
|
|
Discourse.redis.without_namespace.del CommonPasswords::LIST_KEY
|
|
end
|
|
end
|