schema.rb 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # encoding: UTF-8
  2. # This file is auto-generated from the current state of the database. Instead
  3. # of editing this file, please use the migrations feature of Active Record to
  4. # incrementally modify your database, and then regenerate this schema definition.
  5. #
  6. # Note that this schema.rb definition is the authoritative source for your
  7. # database schema. If you need to create the application database on another
  8. # system, you should be using db:schema:load, not running all the migrations
  9. # from scratch. The latter is a flawed and unsustainable approach (the more migrations
  10. # you'll amass, the slower it'll run and the greater likelihood for issues).
  11. #
  12. # It's strongly recommended that you check this file into your version control system.
  13. ActiveRecord::Schema.define(version: 20140228161213) do
  14. create_table "courses", force: true do |t|
  15. t.string "title"
  16. t.text "description"
  17. t.integer "user_id"
  18. t.string "language"
  19. t.text "prerequisites"
  20. t.datetime "starts_at"
  21. t.datetime "created_at"
  22. t.datetime "updated_at"
  23. t.integer "rating"
  24. t.integer "duration"
  25. t.string "slides_file_name"
  26. t.string "slides_content_type"
  27. t.integer "slides_file_size"
  28. t.datetime "slides_updated_at"
  29. end
  30. create_table "users", force: true do |t|
  31. t.string "email", default: "", null: false
  32. t.string "encrypted_password", default: "", null: false
  33. t.string "reset_password_token"
  34. t.datetime "reset_password_sent_at"
  35. t.datetime "remember_created_at"
  36. t.integer "sign_in_count", default: 0, null: false
  37. t.datetime "current_sign_in_at"
  38. t.datetime "last_sign_in_at"
  39. t.string "current_sign_in_ip"
  40. t.string "last_sign_in_ip"
  41. t.datetime "created_at"
  42. t.datetime "updated_at"
  43. t.integer "rating"
  44. t.string "name"
  45. t.string "language"
  46. end
  47. add_index "users", ["email"], name: "index_users_on_email", unique: true, using: :btree
  48. add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true, using: :btree
  49. end