schema.rb 1.4 KB

123456789101112131415161718192021222324252627282930313233
  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. # encoding: UTF-8
  10. # This file is auto-generated from the current state of the database. Instead
  11. # of editing this file, please use the migrations feature of Active Record to
  12. # incrementally modify your database, and then regenerate this schema definition.
  13. #
  14. # Note that this schema.rb definition is the authoritative source for your
  15. # database schema. If you need to create the application database on another
  16. # system, you should be using db:schema:load, not running all the migrations
  17. # from scratch. The latter is a flawed and unsustainable approach (the more migrations
  18. # you'll amass, the slower it'll run and the greater likelihood for issues).
  19. #
  20. # It's strongly recommended to check this file into your version control system.
  21. ActiveRecord::Schema.define(:version => 20110711000001) do
  22. create_table "products", :force => true do |t|
  23. t.string "title"
  24. t.text "description"
  25. t.string "image_url"
  26. t.decimal "price", :precision => 8, :scale => 2
  27. t.datetime "created_at"
  28. t.datetime "updated_at"
  29. end
  30. end