/db/schema.rb

https://github.com/zhalowz/Acmeca · Ruby · 118 lines · 88 code · 18 blank · 12 comment · 0 complexity · 3605dc873d0efb2f8a412cb9a7f4b9f5 MD5 · raw file

  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 to check this file into your version control system.
  13. ActiveRecord::Schema.define(:version => 20131211115131) do
  14. create_table "albums", :force => true do |t|
  15. t.string "name"
  16. t.datetime "created_at"
  17. t.datetime "updated_at"
  18. t.integer "gcategory_id"
  19. end
  20. add_index "albums", ["gcategory_id"], :name => "index_albums_on_gcategory_id"
  21. create_table "categories", :force => true do |t|
  22. t.string "name"
  23. t.datetime "created_at"
  24. t.datetime "updated_at"
  25. end
  26. create_table "gcategories", :force => true do |t|
  27. t.string "name"
  28. t.datetime "created_at"
  29. t.datetime "updated_at"
  30. end
  31. create_table "installations", :force => true do |t|
  32. t.string "name"
  33. t.datetime "created_at"
  34. t.datetime "updated_at"
  35. end
  36. create_table "iphotos", :force => true do |t|
  37. t.integer "installation_id"
  38. t.datetime "created_at"
  39. t.datetime "updated_at"
  40. t.string "data_file_name"
  41. t.string "data_content_type"
  42. t.integer "data_file_size"
  43. t.datetime "data_updated_at"
  44. end
  45. add_index "iphotos", ["installation_id"], :name => "index_iphotos_on_installation_id"
  46. create_table "photos", :force => true do |t|
  47. t.integer "album_id"
  48. t.datetime "created_at"
  49. t.datetime "updated_at"
  50. t.string "data_file_name"
  51. t.string "data_content_type"
  52. t.integer "data_file_size"
  53. t.datetime "data_updated_at"
  54. end
  55. add_index "photos", ["album_id"], :name => "index_photos_on_album_id"
  56. create_table "products", :force => true do |t|
  57. t.string "name"
  58. t.text "description"
  59. t.datetime "created_at"
  60. t.datetime "updated_at"
  61. t.string "photo_file_name"
  62. t.string "photo_content_type"
  63. t.integer "photo_file_size"
  64. t.datetime "photo_updated_at"
  65. t.integer "category_id"
  66. end
  67. add_index "products", ["category_id"], :name => "index_products_on_category_id"
  68. create_table "rentals", :force => true do |t|
  69. t.string "header"
  70. t.text "description"
  71. t.datetime "created_at"
  72. t.datetime "updated_at"
  73. end
  74. create_table "sales", :force => true do |t|
  75. t.text "description"
  76. t.string "header"
  77. t.datetime "created_at"
  78. t.datetime "updated_at"
  79. end
  80. create_table "services", :force => true do |t|
  81. t.text "description"
  82. t.string "header"
  83. t.datetime "created_at"
  84. t.datetime "updated_at"
  85. end
  86. create_table "users", :force => true do |t|
  87. t.string "email", :default => "", :null => false
  88. t.string "encrypted_password", :default => "", :null => false
  89. t.string "reset_password_token"
  90. t.datetime "reset_password_sent_at"
  91. t.datetime "remember_created_at"
  92. t.integer "sign_in_count", :default => 0
  93. t.datetime "current_sign_in_at"
  94. t.datetime "last_sign_in_at"
  95. t.string "current_sign_in_ip"
  96. t.string "last_sign_in_ip"
  97. end
  98. add_index "users", ["email"], :name => "index_users_on_email", :unique => true
  99. add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true
  100. end