Guest User

Untitled

a guest
Jun 18th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.19 KB | None | 0 0
  1. # This file is auto-generated from the current state of the database. Instead of editing this file,
  2. # please use the migrations feature of Active Record to incrementally modify your database, and
  3. # then regenerate this schema definition.
  4. #
  5. # Note that this schema.rb definition is the authoritative source for your database schema. If you need
  6. # to create the application database on another system, you should be using db:schema:load, not running
  7. # all the migrations from scratch. The latter is a flawed and unsustainable approach (the more migrations
  8. # you'll amass, the slower it'll run and the greater likelihood for issues).
  9. #
  10. # It's strongly recommended to check this file into your version control system.
  11.  
  12. ActiveRecord::Schema.define(:version => 20090514215843) do
  13.  
  14. create_table "carts", :force => true do |t|
  15. t.datetime "purchased_at"
  16. t.datetime "created_at"
  17. t.datetime "updated_at"
  18. end
  19.  
  20. create_table "categories", :force => true do |t|
  21. t.string "name"
  22. t.datetime "created_at"
  23. t.datetime "updated_at"
  24. end
  25.  
  26. create_table "line_items", :force => true do |t|
  27. t.integer "unit_price", :limit => 10, :precision => 10, :scale => 0
  28. t.integer "product_id"
  29. t.integer "cart_id"
  30. t.integer "quantity"
  31. t.datetime "created_at"
  32. t.datetime "updated_at"
  33. end
  34.  
  35. create_table "order_transactions", :force => true do |t|
  36. t.integer "order_id"
  37. t.string "action"
  38. t.integer "amount"
  39. t.boolean "success"
  40. t.string "authorization"
  41. t.string "message"
  42. t.text "params"
  43. t.datetime "created_at"
  44. t.datetime "updated_at"
  45. end
  46.  
  47. create_table "orders", :force => true do |t|
  48. t.integer "cart_id"
  49. t.string "ip_address"
  50. t.string "first_name"
  51. t.string "last_name"
  52. t.string "card_type"
  53. t.date "card_expires_on"
  54. t.datetime "created_at"
  55. t.datetime "updated_at"
  56. t.string "express_token"
  57. t.string "express_payer_id"
  58. t.string "billing_address"
  59. t.string "billing_address2"
  60. t.string "billing_city"
  61. t.string "billing_state"
  62. t.string "billing_zip"
  63. end
  64.  
  65. create_table "products", :force => true do |t|
  66. t.integer "category_id"
  67. t.string "name"
  68. t.integer "price", :limit => 10, :precision => 10, :scale => 0
  69. t.text "description"
  70. t.datetime "created_at"
  71. t.datetime "updated_at"
  72. end
  73.  
  74. create_table "users", :force => true do |t|
  75. t.string "login", :limit => 40
  76. t.string "name", :limit => 100, :default => ""
  77. t.string "email", :limit => 100
  78. t.string "crypted_password", :limit => 40
  79. t.string "salt", :limit => 40
  80. t.datetime "created_at"
  81. t.datetime "updated_at"
  82. t.string "remember_token", :limit => 40
  83. t.datetime "remember_token_expires_at"
  84. t.string "activation_code", :limit => 40
  85. t.datetime "activated_at"
  86. t.string "state", :default => "passive"
  87. t.datetime "deleted_at"
  88. end
  89.  
  90. add_index "users", ["login"], :name => "index_users_on_login", :unique => true
  91.  
  92. end
Add Comment
Please, Sign In to add comment