Advertisement
Guest User

Untitled

a guest
May 3rd, 2016
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.53 KB | None | 0 0
  1. ActiveRecord::Schema.define(version: 20160502194457) do
  2.  
  3. create_table "comments", force: :cascade do |t|
  4. t.integer "submission_id"
  5. t.text "content"
  6. t.integer "user_id"
  7. t.integer "valoracio", default: 0
  8. t.datetime "created_at", null: false
  9. t.datetime "updated_at", null: false
  10. end
  11.  
  12. add_index "comments", ["submission_id"], name: "index_comments_on_submission_id"
  13. add_index "comments", ["user_id"], name: "index_comments_on_user_id"
  14.  
  15. create_table "links", force: :cascade do |t|
  16. t.string "title"
  17. t.string "url"
  18. t.datetime "created_at", null: false
  19. t.datetime "updated_at", null: false
  20. end
  21.  
  22. create_table "replies", force: :cascade do |t|
  23. t.string "text"
  24. t.integer "user_id"
  25. t.integer "submission_id"
  26. t.integer "comment_id"
  27. t.integer "valoracio", default: 0
  28. t.datetime "created_at", null: false
  29. t.datetime "updated_at", null: false
  30. end
  31.  
  32. add_index "replies", ["comment_id"], name: "index_replies_on_comment_id"
  33. add_index "replies", ["submission_id"], name: "index_replies_on_submission_id"
  34. add_index "replies", ["user_id"], name: "index_replies_on_user_id"
  35.  
  36. create_table "users", force: :cascade do |t|
  37. t.string "name"
  38. t.string "email"
  39. t.string "password"
  40. t.integer "karma", default: 1
  41. t.text "about"
  42. t.string "provider"
  43. t.string "uid"
  44. t.datetime "created_at", null: false
  45. t.datetime "updated_at", null: false
  46. end
  47.  
  48. create_table "submissions", force: :cascade do |t|
  49. t.text "content"
  50. t.integer "valoracio", default: 0
  51. t.string "titol"
  52. t.datetime "created_at", null: false
  53. t.string "url"
  54. t.integer "user_id"
  55. t.datetime "updated_at", null: false
  56. end
  57.  
  58. add_index "submissions", ["user_id"], name: "index_submissions_on_user_id"
  59.  
  60. create_table "votes", force: :cascade do |t|
  61. t.integer "votable_id"
  62. t.string "votable_type"
  63. t.integer "voter_id"
  64. t.string "voter_type"
  65. t.boolean "vote_flag"
  66. t.string "vote_scope"
  67. t.integer "vote_weight"
  68. t.datetime "created_at"
  69. t.datetime "updated_at"
  70. end
  71.  
  72. add_index "votes", ["votable_id", "votable_type", "vote_scope"], name: "index_votes_on_votable_id_and_votable_type_and_vote_scope"
  73. add_index "votes", ["voter_id", "voter_type", "vote_scope"], name: "index_votes_on_voter_id_and_voter_type_and_vote_scope"
  74.  
  75. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement