schema.rb 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #---
  2. # Excerpted from "Agile Web Development with Rails",
  3. # published by The Pragmatic Bookshelf.
  4. # Copyrights apply to this code. It may not be used to create training material,
  5. # courses, books, articles, and the like. Contact us if you are in doubt.
  6. # We make no guarantees that this code is fit for any purpose.
  7. # Visit http://www.pragmaticprogrammer.com/titles/rails4 for more book information.
  8. #---
  9. #---
  10. # Excerpted from "Agile Web Development with Rails, 4rd Ed.",
  11. # published by The Pragmatic Bookshelf.
  12. # Copyrights apply to this code. It may not be used to create training material,
  13. # courses, books, articles, and the like. Contact us if you are in doubt.
  14. # We make no guarantees that this code is fit for any purpose.
  15. # Visit http://www.pragmaticprogrammer.com/titles/rails4 for more book information.
  16. #---
  17. # This file is auto-generated from the current state of the database. Instead
  18. # of editing this file, please use the migrations feature of Active Record to
  19. # incrementally modify your database, and then regenerate this schema definition.
  20. #
  21. # Note that this schema.rb definition is the authoritative source for your
  22. # database schema. If you need to create the application database on another
  23. # system, you should be using db:schema:load, not running all the migrations
  24. # from scratch. The latter is a flawed and unsustainable approach (the more migrations
  25. # you'll amass, the slower it'll run and the greater likelihood for issues).
  26. #
  27. # It's strongly recommended to check this file into your version control system.
  28. ActiveRecord::Schema.define(:version => 20110211000001) do
  29. create_table "products", :force => true do |t|
  30. t.string "title"
  31. t.text "description"
  32. t.string "image_url"
  33. t.decimal "price", :precision => 8, :scale => 2
  34. t.datetime "created_at"
  35. t.datetime "updated_at"
  36. end
  37. end