Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ActiveRecord::Schema.define(version: 20160502194457) do
- create_table "comments", force: :cascade do |t|
- t.integer "submission_id"
- t.text "content"
- t.integer "user_id"
- t.integer "valoracio", default: 0
- t.datetime "created_at", null: false
- t.datetime "updated_at", null: false
- end
- add_index "comments", ["submission_id"], name: "index_comments_on_submission_id"
- add_index "comments", ["user_id"], name: "index_comments_on_user_id"
- create_table "links", force: :cascade do |t|
- t.string "title"
- t.string "url"
- t.datetime "created_at", null: false
- t.datetime "updated_at", null: false
- end
- create_table "replies", force: :cascade do |t|
- t.string "text"
- t.integer "user_id"
- t.integer "submission_id"
- t.integer "comment_id"
- t.integer "valoracio", default: 0
- t.datetime "created_at", null: false
- t.datetime "updated_at", null: false
- end
- add_index "replies", ["comment_id"], name: "index_replies_on_comment_id"
- add_index "replies", ["submission_id"], name: "index_replies_on_submission_id"
- add_index "replies", ["user_id"], name: "index_replies_on_user_id"
- create_table "users", force: :cascade do |t|
- t.string "name"
- t.string "email"
- t.string "password"
- t.integer "karma", default: 1
- t.text "about"
- t.string "provider"
- t.string "uid"
- t.datetime "created_at", null: false
- t.datetime "updated_at", null: false
- end
- create_table "submissions", force: :cascade do |t|
- t.text "content"
- t.integer "valoracio", default: 0
- t.string "titol"
- t.datetime "created_at", null: false
- t.string "url"
- t.integer "user_id"
- t.datetime "updated_at", null: false
- end
- add_index "submissions", ["user_id"], name: "index_submissions_on_user_id"
- create_table "votes", force: :cascade do |t|
- t.integer "votable_id"
- t.string "votable_type"
- t.integer "voter_id"
- t.string "voter_type"
- t.boolean "vote_flag"
- t.string "vote_scope"
- t.integer "vote_weight"
- t.datetime "created_at"
- t.datetime "updated_at"
- end
- add_index "votes", ["votable_id", "votable_type", "vote_scope"], name: "index_votes_on_votable_id_and_votable_type_and_vote_scope"
- add_index "votes", ["voter_id", "voter_type", "vote_scope"], name: "index_votes_on_voter_id_and_voter_type_and_vote_scope"
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement