diff options
author | Nihad Abbasov <narkoz.2008@gmail.com> | 2012-07-06 11:05:31 +0400 |
---|---|---|
committer | Nihad Abbasov <narkoz.2008@gmail.com> | 2012-07-06 11:05:31 +0400 |
commit | 6533711825c3f197470be041b95e2885bae50bc5 (patch) | |
tree | 543c6718da21bde78aaa3f8fdab9aeda5f67fdf7 /db/migrate | |
parent | 2abd054b0c3c3f1116840cf51444fc63e49057f6 (diff) |
enable lockable strategy for users
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20120706065612_add_lockable_to_users.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/db/migrate/20120706065612_add_lockable_to_users.rb b/db/migrate/20120706065612_add_lockable_to_users.rb new file mode 100644 index 00000000000..cf86e660876 --- /dev/null +++ b/db/migrate/20120706065612_add_lockable_to_users.rb @@ -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 |