Advertisement
Guest User

Schema

a guest
Feb 23rd, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.28 KB | None | 0 0
  1. ActiveRecord::Schema.define(version: 20180129180123) do
  2.  
  3.   create_table "carts", force: :cascade do |t|
  4.     t.datetime "created_at", null: false
  5.     t.datetime "updated_at", null: false
  6.   end
  7.  
  8.   create_table "line_items", force: :cascade do |t|
  9.     t.integer  "product_id"
  10.     t.integer  "cart_id"
  11.     t.datetime "created_at",             null: false
  12.     t.datetime "updated_at",             null: false
  13.     t.integer  "quantity",   default: 1
  14.     t.integer  "order_id"
  15.     t.index ["cart_id"], name: "index_line_items_on_cart_id"
  16.     t.index ["order_id"], name: "index_line_items_on_order_id"
  17.     t.index ["product_id"], name: "index_line_items_on_product_id"
  18.   end
  19.  
  20.   create_table "orders", force: :cascade do |t|
  21.     t.string   "name"
  22.     t.text     "address"
  23.     t.string   "email"
  24.     t.string   "pay_type"
  25.     t.datetime "created_at", null: false
  26.     t.datetime "updated_at", null: false
  27.   end
  28.  
  29.   create_table "products", force: :cascade do |t|
  30.     t.string   "name"
  31.     t.text     "description"
  32.     t.decimal  "price"
  33.     t.datetime "created_at",         null: false
  34.     t.datetime "updated_at",         null: false
  35.     t.string   "image_file_name"
  36.     t.string   "image_content_type"
  37.     t.integer  "image_file_size"
  38.     t.datetime "image_updated_at"
  39.   end
  40.  
  41. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement