A website template with lots of features, built with ruby on rails.

schema.rb 4.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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: 20150110020743) 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. t.string "image_tmp"
  27. t.boolean "image_processing", default: false, null: false
  28. end
  29. add_index "blog_posts", ["author_id"], name: "index_blog_posts_on_author_id", using: :btree
  30. add_index "blog_posts", ["slug"], name: "index_blog_posts_on_slug", unique: true, using: :btree
  31. create_table "contact_messages", force: true do |t|
  32. t.string "title"
  33. t.string "email"
  34. t.text "content"
  35. t.boolean "unread"
  36. t.integer "user_id"
  37. t.datetime "created_at"
  38. t.datetime "updated_at"
  39. end
  40. add_index "contact_messages", ["user_id"], name: "index_contact_messages_on_user_id", using: :btree
  41. create_table "friendly_id_slugs", force: true do |t|
  42. t.string "slug", null: false
  43. t.integer "sluggable_id", null: false
  44. t.string "sluggable_type", limit: 50
  45. t.string "scope"
  46. t.datetime "created_at"
  47. end
  48. 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
  49. add_index "friendly_id_slugs", ["slug", "sluggable_type"], name: "index_friendly_id_slugs_on_slug_and_sluggable_type", using: :btree
  50. add_index "friendly_id_slugs", ["sluggable_id"], name: "index_friendly_id_slugs_on_sluggable_id", using: :btree
  51. add_index "friendly_id_slugs", ["sluggable_type"], name: "index_friendly_id_slugs_on_sluggable_type", using: :btree
  52. create_table "infos", force: true do |t|
  53. t.string "website_name"
  54. t.string "tagline"
  55. t.string "logo"
  56. t.string "contact_email"
  57. t.string "default_language"
  58. t.datetime "created_at"
  59. t.datetime "updated_at"
  60. t.boolean "maintenance_mode"
  61. t.string "maintenance_title"
  62. t.text "maintenance_message"
  63. t.string "website_link"
  64. t.string "server_email"
  65. end
  66. create_table "subscriptions", force: true do |t|
  67. t.string "first_name"
  68. t.string "last_name"
  69. t.string "email"
  70. t.datetime "created_at"
  71. t.datetime "updated_at"
  72. end
  73. create_table "uploads", force: true do |t|
  74. t.string "title"
  75. t.string "file"
  76. t.text "description"
  77. t.datetime "created_at"
  78. t.datetime "updated_at"
  79. t.string "file_tmp"
  80. t.boolean "file_processing", default: false, null: false
  81. end
  82. create_table "users", force: true do |t|
  83. t.string "email", default: "", null: false
  84. t.string "encrypted_password", default: "", null: false
  85. t.string "reset_password_token"
  86. t.datetime "reset_password_sent_at"
  87. t.datetime "remember_created_at"
  88. t.integer "sign_in_count", default: 0, null: false
  89. t.datetime "current_sign_in_at"
  90. t.datetime "last_sign_in_at"
  91. t.string "current_sign_in_ip"
  92. t.string "last_sign_in_ip"
  93. t.string "first_name"
  94. t.string "last_name"
  95. t.datetime "created_at"
  96. t.datetime "updated_at"
  97. t.boolean "admin"
  98. t.string "avatar"
  99. t.string "avatar_tmp"
  100. t.boolean "avatar_processing", default: false, null: false
  101. end
  102. add_index "users", ["email"], name: "index_users_on_email", unique: true, using: :btree
  103. add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true, using: :btree
  104. end