Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 

40 lignes
1.6 KiB

  1. # This file is auto-generated from the current state of the database. Instead
  2. # of editing this file, please use the migrations feature of Active Record to
  3. # incrementally modify your database, and then regenerate this schema definition.
  4. #
  5. # Note that this schema.rb definition is the authoritative source for your
  6. # database schema. If you need to create the application database on another
  7. # system, you should be using db:schema:load, not running all the migrations
  8. # from scratch. The latter is a flawed and unsustainable approach (the more migrations
  9. # you'll amass, the slower it'll run and the greater likelihood for issues).
  10. #
  11. # It's strongly recommended that you check this file into your version control system.
  12. ActiveRecord::Schema.define(version: 20161116091835) do
  13. create_table "carts", force: :cascade do |t|
  14. t.datetime "created_at", null: false
  15. t.datetime "updated_at", null: false
  16. end
  17. create_table "line_items", force: :cascade do |t|
  18. t.integer "product_id"
  19. t.integer "cart_id"
  20. t.datetime "created_at", null: false
  21. t.datetime "updated_at", null: false
  22. t.integer "quantity", default: 1
  23. t.index ["cart_id"], name: "index_line_items_on_cart_id"
  24. t.index ["product_id"], name: "index_line_items_on_product_id"
  25. end
  26. create_table "products", force: :cascade do |t|
  27. t.string "title"
  28. t.text "description"
  29. t.string "image_url"
  30. t.decimal "price", precision: 8, scale: 2
  31. t.datetime "created_at", null: false
  32. t.datetime "updated_at", null: false
  33. end
  34. end