schema.rb 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # This file is auto-generated from the current state of the database. Instead
  2. # of editing this file, please use the migrations feature of Active Record to
  3. # incrementally modify your database, and then regenerate this schema definition.
  4. #
  5. # Note that this schema.rb definition is the authoritative source for your
  6. # database schema. If you need to create the application database on another
  7. # system, you should be using db:schema:load, not running all the migrations
  8. # from scratch. The latter is a flawed and unsustainable approach (the more migrations
  9. # you'll amass, the slower it'll run and the greater likelihood for issues).
  10. #
  11. # It's strongly recommended that you check this file into your version control system.
  12. ActiveRecord::Schema.define(version: 2019_01_18_064320) do
  13. # These are extensions that must be enabled in order to support this database
  14. enable_extension "plpgsql"
  15. create_table "pokemon", force: :cascade do |t|
  16. t.integer "pokedex_number", null: false
  17. t.string "nickname"
  18. t.binary "raw_nickname"
  19. t.binary "raw_pokemon"
  20. t.datetime "created_at", null: false
  21. t.datetime "updated_at", null: false
  22. end
  23. create_table "users", force: :cascade do |t|
  24. t.string "username", default: "", null: false
  25. t.string "email", default: "", null: false
  26. t.string "encrypted_password", default: "", null: false
  27. t.string "reset_password_token"
  28. t.datetime "reset_password_sent_at"
  29. t.datetime "remember_created_at"
  30. t.integer "sign_in_count", default: 0, null: false
  31. t.datetime "current_sign_in_at"
  32. t.datetime "last_sign_in_at"
  33. t.inet "current_sign_in_ip"
  34. t.inet "last_sign_in_ip"
  35. t.string "confirmation_token"
  36. t.datetime "confirmed_at"
  37. t.datetime "confirmation_sent_at"
  38. t.string "unconfirmed_email"
  39. t.integer "failed_attempts", default: 0, null: false
  40. t.string "unlock_token"
  41. t.datetime "locked_at"
  42. t.datetime "created_at", null: false
  43. t.datetime "updated_at", null: false
  44. t.index ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true
  45. t.index ["email"], name: "index_users_on_email", unique: true
  46. t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
  47. t.index ["unlock_token"], name: "index_users_on_unlock_token", unique: true
  48. t.index ["username"], name: "index_users_on_username", unique: true
  49. end
  50. end