Advertisement
Guest User

Untitled

a guest
May 24th, 2015
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.47 KB | None | 0 0
  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.  
  14. ActiveRecord::Schema.define(version: 20150410183731) do
  15.  
  16. # These are extensions that must be enabled in order to support this database
  17. enable_extension "plpgsql"
  18.  
  19. create_table "addresses", force: true do |t|
  20. t.string "street_address", null: false
  21. t.string "extended_address"
  22. t.string "city", null: false
  23. t.string "country", null: false
  24. t.string "postal_code"
  25. t.datetime "created_at"
  26. t.datetime "updated_at"
  27. end
  28.  
  29. create_table "delayed_jobs", force: true do |t|
  30. t.integer "priority", default: 0, null: false
  31. t.integer "attempts", default: 0, null: false
  32. t.text "handler", null: false
  33. t.text "last_error"
  34. t.datetime "run_at"
  35. t.datetime "locked_at"
  36. t.datetime "failed_at"
  37. t.string "locked_by"
  38. t.string "queue"
  39. t.datetime "created_at"
  40. t.datetime "updated_at"
  41. end
  42.  
  43. add_index "delayed_jobs", ["priority", "run_at"], name: "delayed_jobs_priority", using: :btree
  44.  
  45. create_table "events", force: true do |t|
  46. t.text "description", null: false
  47. t.datetime "begin_at", null: false
  48. t.datetime "end_at", null: false
  49. t.integer "address_id", null: false
  50. t.datetime "created_at"
  51. t.datetime "updated_at"
  52. end
  53.  
  54. add_index "events", ["address_id"], name: "index_events_on_address_id", using: :btree
  55.  
  56. create_table "images", force: true do |t|
  57. t.integer "imageable_id", null: false
  58. t.string "imageable_type", null: false
  59. t.string "image_uid", null: false
  60. t.string "image_name"
  61. t.integer "image_height", default: 0
  62. t.integer "image_width", default: 0
  63. t.datetime "created_at"
  64. t.datetime "updated_at"
  65. end
  66.  
  67. add_index "images", ["imageable_id", "imageable_type"], name: "index_images_on_imageable_id_and_imageable_type", using: :btree
  68.  
  69. create_table "participations", force: true do |t|
  70. t.integer "user_id", null: false
  71. t.integer "event_id", null: false
  72. t.datetime "created_at"
  73. t.datetime "updated_at"
  74. end
  75.  
  76. add_index "participations", ["event_id"], name: "index_participations_on_event_id", using: :btree
  77. add_index "participations", ["user_id"], name: "index_participations_on_user_id", using: :btree
  78.  
  79. create_table "roles", force: true do |t|
  80. t.string "kind", null: false
  81. t.integer "participation_id", null: false
  82. t.datetime "created_at"
  83. t.datetime "updated_at"
  84. end
  85.  
  86. add_index "roles", ["participation_id"], name: "index_roles_on_participation_id", using: :btree
  87.  
  88. create_table "users", force: true do |t|
  89. t.string "name", null: false
  90. t.string "email", null: false
  91. t.integer "facebook_id"
  92. t.datetime "created_at"
  93. t.datetime "updated_at"
  94. end
  95.  
  96. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement