Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  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.  
  13. ActiveRecord::Schema.define(version: 20170823004231) do
  14.  
  15. create_table "orders", force: :cascade do |t|
  16. t.integer "user_id"
  17. t.integer "product_id"
  18. t.float "total"
  19. t.index ["product_id"], name: "index_orders_on_product_id"
  20. t.index ["user_id"], name: "index_orders_on_user_id"
  21. end
  22.  
  23. create_table "products", force: :cascade do |t|
  24. t.string "name"
  25. t.text "description"
  26. t.string "image_url"
  27. t.datetime "created_at", null: false
  28. t.datetime "updated_at", null: false
  29. t.string "colour"
  30. t.integer "price"
  31. end
  32.  
  33. create_table "users", force: :cascade do |t|
  34. t.string "first_name"
  35. t.string "last_name"
  36. t.datetime "created_at", null: false
  37. t.datetime "updated_at", null: false
  38. end
  39.  
  40. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement