authy-devise-demo/db/schema.rb in devise-authy-1.5.3 vs authy-devise-demo/db/schema.rb in devise-authy-1.6.0
- old
+ new
@@ -9,13 +9,13 @@
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
# you'll amass, the slower it'll run and the greater likelihood for issues).
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20130409234434) do
+ActiveRecord::Schema.define(:version => 20141202004246) do
- create_table "users", :force => true do |t|
+ create_table "admins", :force => true do |t|
t.string "email", :default => "", :null => false
t.string "encrypted_password", :default => "", :null => false
t.string "reset_password_token"
t.datetime "reset_password_sent_at"
t.datetime "remember_created_at"
@@ -27,12 +27,36 @@
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.string "authy_id"
t.datetime "last_sign_in_with_authy"
t.boolean "authy_enabled", :default => false
+ t.integer "failed_attempts", :default => 0
+ t.string "unlock_token"
+ t.datetime "locked_at"
end
- add_index "users", ["authy_id"], :name => "index_users_on_authy_id"
+ add_index "admins", ["authy_id"], :name => "index_admins_on_authy_id"
+ add_index "admins", ["email"], :name => "index_admins_on_email", :unique => true
+ add_index "admins", ["reset_password_token"], :name => "index_admins_on_reset_password_token", :unique => true
+
+ create_table "users", :force => true do |t|
+ t.string "email", :default => "", :null => false
+ t.string "encrypted_password", :default => "", :null => false
+ t.string "reset_password_token"
+ t.datetime "reset_password_sent_at"
+ t.datetime "remember_created_at"
+ t.integer "sign_in_count", :default => 0
+ t.datetime "current_sign_in_at"
+ t.datetime "last_sign_in_at"
+ t.string "current_sign_in_ip"
+ t.string "last_sign_in_ip"
+ t.integer "failed_attempts", :default => 0
+ t.string "unlock_token"
+ t.datetime "locked_at"
+ t.datetime "created_at", :null => false
+ t.datetime "updated_at", :null => false
+ end
+
add_index "users", ["email"], :name => "index_users_on_email", :unique => true
add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true
end