Basis of rails-driven app for local business
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

62 lines
2.3 KiB

  1. # This file is auto-generated from the current state of the database. Instead of editing this file,
  2. # please use the migrations feature of Active Record to incrementally modify your database, and
  3. # then regenerate this schema definition.
  4. #
  5. # Note that this schema.rb definition is the authoritative source for your database schema. If you need
  6. # to create the application database on another system, you should be using db:schema:load, not running
  7. # all the migrations from scratch. The latter is a flawed and unsustainable approach (the more migrations
  8. # you'll amass, the slower it'll run and the greater likelihood for issues).
  9. #
  10. # It's strongly recommended to check this file into your version control system.
  11. ActiveRecord::Schema.define(:version => 20090311215350) do
  12. create_table "loads", :force => true do |t|
  13. t.string "number"
  14. t.date "start_date"
  15. t.date "end_date"
  16. t.integer "hub_in"
  17. t.integer "hub_out"
  18. t.datetime "created_at"
  19. t.datetime "updated_at"
  20. t.string "shipper"
  21. t.string "destination"
  22. t.string "origin"
  23. t.string "start_point"
  24. t.integer "lookup"
  25. t.string "truck"
  26. t.string "trailer"
  27. t.decimal "fuel_gallons", :precision => 8, :scale => 3, :default => 0.0
  28. t.decimal "fuel_cost", :precision => 8, :scale => 2, :default => 0.0
  29. t.decimal "scales", :precision => 6, :scale => 2, :default => 0.0
  30. t.decimal "loading", :precision => 6, :scale => 2, :default => 0.0
  31. t.decimal "unloading", :precision => 6, :scale => 2, :default => 0.0
  32. t.integer "stops", :default => 0
  33. end
  34. create_table "people", :force => true do |t|
  35. t.string "firstname"
  36. t.string "lastname"
  37. t.datetime "created_at"
  38. t.datetime "updated_at"
  39. t.string "type"
  40. t.string "number"
  41. t.string "ssn"
  42. t.date "dob"
  43. t.date "hired"
  44. t.string "tax_status"
  45. t.integer "dependents", :default => 0
  46. t.decimal "payrate", :precision => 4, :scale => 2, :default => 0.25
  47. t.string "street"
  48. t.string "city"
  49. t.string "state"
  50. t.string "zip"
  51. t.string "phone"
  52. t.string "dl_number"
  53. t.string "dl_state"
  54. t.date "dl_expire"
  55. t.string "truck"
  56. t.string "trailer"
  57. end
  58. end