fix build & add migration to clear common passwords cache

This commit is contained in:
Régis Hanol
2016-03-03 19:39:22 +01:00
parent 341037d6fb
commit 8d4bac7da2
3 changed files with 10 additions and 4 deletions

View File

@@ -0,0 +1,7 @@
require "common_passwords/common_passwords"
class ClearCommonPasswordsCache < ActiveRecord::Migration
def change
$redis.without_namespace.del CommonPasswords::LIST_KEY
end
end