Guest User

Untitled

a guest
Jun 19th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  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 to check this file into your version control system.
  12.  
  13. ActiveRecord::Schema.define(:version => 20100914160927) do
  14.  
  15. create_table "authors", :force => true do |t|
  16. t.string "name"
  17. t.integer "age"
  18. t.datetime "created_at"
  19. t.datetime "updated_at"
  20. t.string "email", :default => "", :null => false
  21. t.string "encrypted_password", :limit => 128, :default => "", :null => false
  22. t.string "password_salt", :default => "", :null => false
  23. t.string "reset_password_token"
  24. t.string "remember_token"
  25. t.datetime "remember_created_at"
  26. t.integer "sign_in_count", :default => 0
  27. t.datetime "current_sign_in_at"
  28. t.datetime "last_sign_in_at"
  29. t.string "current_sign_in_ip"
  30. t.string "last_sign_in_ip"
  31. end
  32.  
  33. add_index "authors", ["email"], :name => "index_authors_on_email", :unique => true
  34. add_index "authors", ["reset_password_token"], :name => "index_authors_on_reset_password_token", :unique => true
  35.  
  36. create_table "comments", :force => true do |t|
  37. t.integer "post_id"
  38. t.string "author"
  39. t.text "body"
  40. t.datetime "created_at"
  41. t.datetime "updated_at"
  42. end
  43.  
  44. create_table "posts", :force => true do |t|
  45. t.string "title"
  46. t.text "body"
  47. t.datetime "created_at"
  48. t.datetime "updated_at"
  49. t.integer "author_id"
  50. end
  51.  
  52. end
Add Comment
Please, Sign In to add comment