Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNihad Abbasov <narkoz.2008@gmail.com>2012-07-06 11:05:31 +0400
committerNihad Abbasov <narkoz.2008@gmail.com>2012-07-06 11:05:31 +0400
commit6533711825c3f197470be041b95e2885bae50bc5 (patch)
tree543c6718da21bde78aaa3f8fdab9aeda5f67fdf7 /db/migrate
parent2abd054b0c3c3f1116840cf51444fc63e49057f6 (diff)
enable lockable strategy for users
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20120706065612_add_lockable_to_users.rb6
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