schema.rb 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. # This file is the source Rails uses to define your schema when running `rails
  6. # db:schema:load`. When creating a new database, `rails db:schema:load` tends to
  7. # be faster and is potentially less error prone than running all of your
  8. # migrations from scratch. Old migrations may fail to apply correctly if those
  9. # migrations use external dependencies or application code.
  10. #
  11. # It's strongly recommended that you check this file into your version control system.
  12. ActiveRecord::Schema.define(version: 2020_01_18_200407) 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: ""
  26. t.string "password_digest", 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.string "provider"
  43. t.string "uid"
  44. t.datetime "created_at", precision: 6, null: false
  45. t.datetime "updated_at", precision: 6, null: false
  46. t.boolean "allow_password_change", default: false
  47. t.json "tokens"
  48. t.index ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true
  49. t.index ["email"], name: "index_users_on_email", unique: true
  50. t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
  51. t.index ["uid", "provider"], name: "index_users_on_uid_and_provider", unique: true
  52. t.index ["unlock_token"], name: "index_users_on_unlock_token", unique: true
  53. end
  54. end