diff --git a/db/migrate/20150715145517_devise_create_users.rb b/db/migrate/20150715145517_devise_create_users.rb index 1b9d546..421ed69 100644 --- a/db/migrate/20150715145517_devise_create_users.rb +++ b/db/migrate/20150715145517_devise_create_users.rb @@ -25,10 +25,10 @@ class DeviseCreateUsers < ActiveRecord::Migration # t.datetime :confirmation_sent_at # t.string :unconfirmed_email # Only if using reconfirmable - ## Lockable - # t.integer :failed_attempts, default: 0, null: false # Only if lock strategy is :failed_attempts - # t.string :unlock_token # Only if unlock strategy is :email or :both - # t.datetime :locked_at + # Lockable + t.integer :failed_attempts, default: 0, null: false # Only if lock strategy is :failed_attempts + t.string :unlock_token # Only if unlock strategy is :email or :both + t.datetime :locked_at t.timestamps diff --git a/db/schema.rb b/db/schema.rb index afe51c6..0c454ba 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -75,6 +75,9 @@ ActiveRecord::Schema.define(version: 20150715145517) do t.datetime "last_sign_in_at" t.inet "current_sign_in_ip" t.inet "last_sign_in_ip" + t.integer "failed_attempts", default: 0, null: false + t.string "unlock_token" + t.datetime "locked_at" t.datetime "created_at" t.datetime "updated_at" end