enable lockable strategy for users
This commit is contained in:
parent
2abd054b0c
commit
6533711825
4 changed files with 15 additions and 7 deletions
6
db/migrate/20120706065612_add_lockable_to_users.rb
Normal file
6
db/migrate/20120706065612_add_lockable_to_users.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue