|
|
|
@ -1,4 +1,3 @@
|
|
|
|
|
# encoding: UTF-8 |
|
|
|
|
# This file is auto-generated from the current state of the database. Instead |
|
|
|
|
# of editing this file, please use the migrations feature of Active Record to |
|
|
|
|
# incrementally modify your database, and then regenerate this schema definition. |
|
|
|
@ -14,45 +13,43 @@
|
|
|
|
|
ActiveRecord::Schema.define(version: 20160209032439) do |
|
|
|
|
|
|
|
|
|
create_table "admins", force: :cascade do |t| |
|
|
|
|
t.string "email", default: "", null: false |
|
|
|
|
t.string "encrypted_password", default: "", null: false |
|
|
|
|
t.string "reset_password_token" |
|
|
|
|
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, null: false |
|
|
|
|
t.integer "sign_in_count", default: 0, null: false |
|
|
|
|
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.datetime "created_at", null: false |
|
|
|
|
t.datetime "updated_at", null: false |
|
|
|
|
t.string "current_sign_in_ip" |
|
|
|
|
t.string "last_sign_in_ip" |
|
|
|
|
t.datetime "created_at", null: false |
|
|
|
|
t.datetime "updated_at", null: false |
|
|
|
|
t.index ["email"], name: "index_admins_on_email", unique: true |
|
|
|
|
t.index ["reset_password_token"], name: "index_admins_on_reset_password_token", unique: true |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
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: :cascade do |t| |
|
|
|
|
t.string "email", default: "", null: false |
|
|
|
|
t.string "encrypted_password", default: "", null: false |
|
|
|
|
t.string "reset_password_token" |
|
|
|
|
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, null: false |
|
|
|
|
t.integer "sign_in_count", default: 0, null: false |
|
|
|
|
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.datetime "created_at", null: false |
|
|
|
|
t.datetime "updated_at", null: false |
|
|
|
|
t.integer "second_factor_attempts_count", default: 0 |
|
|
|
|
t.string "nickname", limit: 64 |
|
|
|
|
t.string "encrypted_otp_secret_key" |
|
|
|
|
t.string "encrypted_otp_secret_key_iv" |
|
|
|
|
t.string "encrypted_otp_secret_key_salt" |
|
|
|
|
t.string "current_sign_in_ip" |
|
|
|
|
t.string "last_sign_in_ip" |
|
|
|
|
t.datetime "created_at", null: false |
|
|
|
|
t.datetime "updated_at", null: false |
|
|
|
|
t.integer "second_factor_attempts_count", default: 0 |
|
|
|
|
t.string "nickname", limit: 64 |
|
|
|
|
t.string "encrypted_otp_secret_key" |
|
|
|
|
t.string "encrypted_otp_secret_key_iv" |
|
|
|
|
t.string "encrypted_otp_secret_key_salt" |
|
|
|
|
t.index ["email"], name: "index_users_on_email", unique: true |
|
|
|
|
t.index ["encrypted_otp_secret_key"], name: "index_users_on_encrypted_otp_secret_key", unique: true |
|
|
|
|
t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
add_index "users", ["email"], name: "index_users_on_email", unique: true |
|
|
|
|
add_index "users", ["encrypted_otp_secret_key"], name: "index_users_on_encrypted_otp_secret_key", unique: true |
|
|
|
|
add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true |
|
|
|
|
|
|
|
|
|
end |
|
|
|
|