Site para o estudio Velvet Design em São Paulo. http://velvetdesign.com.br

schema.rb 3.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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: 20141101234157) do
  14. # These are extensions that must be enabled in order to support this database
  15. enable_extension "plpgsql"
  16. create_table "blog_posts", force: true do |t|
  17. t.string "title"
  18. t.string "slug"
  19. t.text "content"
  20. t.boolean "published"
  21. t.integer "author_id"
  22. t.datetime "created_at"
  23. t.datetime "updated_at"
  24. t.string "description"
  25. t.string "image"
  26. end
  27. add_index "blog_posts", ["author_id"], name: "index_blog_posts_on_author_id", using: :btree
  28. add_index "blog_posts", ["slug"], name: "index_blog_posts_on_slug", unique: true, using: :btree
  29. create_table "contact_messages", force: true do |t|
  30. t.string "title"
  31. t.string "email"
  32. t.text "content"
  33. t.boolean "unread"
  34. t.integer "user_id"
  35. t.datetime "created_at"
  36. t.datetime "updated_at"
  37. end
  38. add_index "contact_messages", ["user_id"], name: "index_contact_messages_on_user_id", using: :btree
  39. create_table "friendly_id_slugs", force: true do |t|
  40. t.string "slug", null: false
  41. t.integer "sluggable_id", null: false
  42. t.string "sluggable_type", limit: 50
  43. t.string "scope"
  44. t.datetime "created_at"
  45. end
  46. add_index "friendly_id_slugs", ["slug", "sluggable_type", "scope"], name: "index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope", unique: true, using: :btree
  47. add_index "friendly_id_slugs", ["slug", "sluggable_type"], name: "index_friendly_id_slugs_on_slug_and_sluggable_type", using: :btree
  48. add_index "friendly_id_slugs", ["sluggable_id"], name: "index_friendly_id_slugs_on_sluggable_id", using: :btree
  49. add_index "friendly_id_slugs", ["sluggable_type"], name: "index_friendly_id_slugs_on_sluggable_type", using: :btree
  50. create_table "infos", force: true do |t|
  51. t.string "website_name"
  52. t.string "tagline"
  53. t.string "logo"
  54. t.string "contact_email"
  55. t.string "default_language"
  56. t.datetime "created_at"
  57. t.datetime "updated_at"
  58. t.boolean "maintenance_mode"
  59. t.string "maintenance_title"
  60. t.text "maintenance_message"
  61. t.string "website_link"
  62. t.string "server_email"
  63. end
  64. create_table "uploads", force: true do |t|
  65. t.string "title"
  66. t.string "file"
  67. t.text "description"
  68. t.datetime "created_at"
  69. t.datetime "updated_at"
  70. end
  71. create_table "users", force: true do |t|
  72. t.string "email", default: "", null: false
  73. t.string "encrypted_password", default: "", null: false
  74. t.string "reset_password_token"
  75. t.datetime "reset_password_sent_at"
  76. t.datetime "remember_created_at"
  77. t.integer "sign_in_count", default: 0, null: false
  78. t.datetime "current_sign_in_at"
  79. t.datetime "last_sign_in_at"
  80. t.string "current_sign_in_ip"
  81. t.string "last_sign_in_ip"
  82. t.string "first_name"
  83. t.string "last_name"
  84. t.datetime "created_at"
  85. t.datetime "updated_at"
  86. t.boolean "admin"
  87. t.string "avatar"
  88. end
  89. add_index "users", ["email"], name: "index_users_on_email", unique: true, using: :btree
  90. add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true, using: :btree
  91. end