schema.rb 1.2 KB

123456789101112131415161718192021222324252627282930
  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: 20171222122058) do
  13. create_table "users", force: :cascade do |t|
  14. t.string "name"
  15. t.string "login"
  16. t.string "email"
  17. t.datetime "created_at", null: false
  18. t.datetime "updated_at", null: false
  19. t.string "password_digest"
  20. t.string "remember_digest"
  21. t.integer "gender", default: 0
  22. t.string "phone"
  23. t.date "birth_date"
  24. t.string "picture"
  25. t.index ["login"], name: "index_users_on_login", unique: true
  26. end
  27. end