enable lockable strategy for users

This commit is contained in:
Nihad Abbasov 2012-07-06 00:05:31 -07:00
parent 2abd054b0c
commit 6533711825
4 changed files with 15 additions and 7 deletions

View file

@ -0,0 +1,6 @@
class AddLockableToUsers < ActiveRecord::Migration
def change
add_column :users, :failed_attempts, :integer, :default => 0
add_column :users, :locked_at, :datetime
end
end