|
|
@ -1,4 +1,3 @@ |
|
|
|
# encoding: UTF-8 |
|
|
|
|
|
|
|
# This file is auto-generated from the current state of the database. Instead |
|
|
|
# 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 |
|
|
|
# of editing this file, please use the migrations feature of Active Record to |
|
|
|
# incrementally modify your database, and then regenerate this schema definition. |
|
|
|
# incrementally modify your database, and then regenerate this schema definition. |
|
|
@ -26,11 +25,10 @@ ActiveRecord::Schema.define(version: 20160209032439) do |
|
|
|
t.string "last_sign_in_ip" |
|
|
|
t.string "last_sign_in_ip" |
|
|
|
t.datetime "created_at", null: false |
|
|
|
t.datetime "created_at", null: false |
|
|
|
t.datetime "updated_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 |
|
|
|
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| |
|
|
|
create_table "users", force: :cascade do |t| |
|
|
|
t.string "email", default: "", null: false |
|
|
|
t.string "email", default: "", null: false |
|
|
|
t.string "encrypted_password", default: "", null: false |
|
|
|
t.string "encrypted_password", default: "", null: false |
|
|
@ -49,10 +47,9 @@ ActiveRecord::Schema.define(version: 20160209032439) do |
|
|
|
t.string "encrypted_otp_secret_key" |
|
|
|
t.string "encrypted_otp_secret_key" |
|
|
|
t.string "encrypted_otp_secret_key_iv" |
|
|
|
t.string "encrypted_otp_secret_key_iv" |
|
|
|
t.string "encrypted_otp_secret_key_salt" |
|
|
|
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 |
|
|
|
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 |
|
|
|
end |
|
|
|