From b9b58d07b82970051f960a6c30d0dc6c80b42ff2 Mon Sep 17 00:00:00 2001 From: jimi Date: Wed, 11 Mar 2009 16:09:41 -0500 Subject: [PATCH] Update people fixture, create data reset task --- lib/tasks/data.rake | 7 + test/fixtures/people.yml | 818 ++++++++++++++++++++++++++++++++++++++- 2 files changed, 819 insertions(+), 6 deletions(-) create mode 100644 lib/tasks/data.rake diff --git a/lib/tasks/data.rake b/lib/tasks/data.rake new file mode 100644 index 0000000..327d30b --- /dev/null +++ b/lib/tasks/data.rake @@ -0,0 +1,7 @@ +namespace :data do + desc "Reset the application data" + task :reset => :environment do + Rake::Task["db:migrate:reset"].invoke + Rake::Task["db:fixtures:load"].invoke + end +end diff --git a/test/fixtures/people.yml b/test/fixtures/people.yml index 951b956..4bf4320 100644 --- a/test/fixtures/people.yml +++ b/test/fixtures/people.yml @@ -1,7 +1,813 @@ -one: - firstname: MyString - lastname: MyString +driver_1: + type: Employee + number: 001 + lastname: Shreve + firstname: Kenneth + payrate: 0.30 + ssn: 264-52-8513 + dob: 19371210 + dl_number: S610505374500 + dl_state: FL + dl_expire: 20011210 + hired: 19840604 + tax_status: M + dependents: 0 + street: 1501 Wild Rose Lane + city: Holly Hill + state: FL + zip: 32117 + phone: 904-255-7314 + truck: Z5172 + trailer: Z5172B -two: - firstname: MyString - lastname: MyString +driver_2: + type: Employee + number: 002 + lastname: Wiltshire + firstname: Bobby + payrate: 0.31 + ssn: 587-32-1867 + dob: 19501122 + dl_number: 587321867 + dl_state: AR + dl_expire: + hired: 19910806 + tax_status: M + dependents: 1 + street: 300 Reginelli + city: Marion + state: AR + zip: 72364 + phone: 501-739-4586 + truck: Z5196 + trailer: Z5103A + +driver_5: + type: Employee + number: 005 + lastname: Thompson + firstname: Andy + payrate: 0.26 + ssn: 231-90-8475 + dob: 19640709 + dl_number: 82485368 + dl_state: TN + dl_expire: 19990709 + hired: 19940704 + tax_status: S + dependents: 3 + street: 2695 Leestown Road + city: Lexington + state: KY + zip: 40511 + phone: 606-225-3176 + truck: Z5104 + trailer: Z5104A + +driver_6: + type: Employee + number: 006 + lastname: Green + firstname: Martin + payrate: 0.28 + ssn: 411-23-6313 + dob: 19681002 + dl_number: 64049135 + dl_state: TN + dl_expire: 19981002 + hired: 19970227 + tax_status: S + dependents: 1 + street: 4512 E Mallory + city: Memphis + state: TN + zip: 38117 + phone: 601-342-3580 + truck: Z5142 + trailer: Z5107A + +driver_8: + type: Employee + number: 008 + lastname: Kelly + firstname: Dave + payrate: 0.25 + ssn: 562-64-2409 + dob: 19470307 + dl_number: K400172470870 + dl_state: FL + dl_expire: 20030307 + hired: 19970527 + tax_status: S + dependents: 1 + street: 5525 Burr Rd + city: Fredonia + state: NY + zip: 14063 + phone: 716-792-9302 + truck: + trailer: + +driver_10: + type: Employee + number: 010 + lastname: Burkman + firstname: Ray + payrate: 0.29 + ssn: 491-76-4034 + dob: 19640227 + dl_number: 07549571 + dl_state: TX + dl_expire: 19980227 + hired: 20061018 + tax_status: S + dependents: 2 + street: 313 Dayton + city: Bernie + state: MO + zip: 63822 + phone: 870-405-6736 + truck: Z5199 + trailer: + +driver_11: + type: Employee + number: 011 + lastname: Richards + firstname: John + payrate: 0.26 + ssn: 126-56-8648 + dob: 19650713 + dl_number: 904827619 + dl_state: AR + dl_expire: 20010713 + hired: 19970708 + tax_status: S + dependents: 0 + street: 1186 Airways Blvd + city: Memphis + state: TN + zip: 38114 + phone: 901-323-7119 + truck: Z5091 + trailer: Z5091A + +driver_13: + type: Employee + number: 013 + lastname: Thompson + firstname: B Andy + payrate: 0.25 + ssn: 282-62-9451 + dob: + dl_number: + dl_state: + dl_expire: + hired: + tax_status: S + dependents: 1 + street: 642 Atwood Ave N + city: St Petersburg + state: FL + zip: 33702 + phone: + truck: Z5053 + trailer: Z5053A + +driver_14: + type: Employee + number: 014 + lastname: Simmermon + firstname: Eric + payrate: 0.25 + ssn: 431-49-3288 + dob: + dl_number: + dl_state: + dl_expire: + hired: + tax_status: M + dependents: 3 + street: 1658 Cr 739 + city: Brookland + state: AR + zip: 72414 + phone: 870-972-1903 + truck: Z5093 + trailer: Z5093A + +driver_15: + type: Employee + number: 015 + lastname: Siebert + firstname: Travier + payrate: 0.29 + ssn: 489-92-3619 + dob: 19720907 + dl_number: 489-9203619 + dl_state: MO + dl_expire: 20000131 + hired: 19971029 + tax_status: S + dependents: 2 + street: 137 CR 272 + city: Piggott + state: AR + zip: 72454 + phone: 573-328-4290 + truck: Z5135 + trailer: Z5135A + +driver_16: + type: Employee + number: 016 + lastname: Calvert + firstname: Bernie + payrate: 0.30 + ssn: 210-26-3388 + dob: 19360501 + dl_number: 09160571 + dl_state: PA + dl_expire: 19980531 + hired: 19980330 + tax_status: M + dependents: 1 + street: 8956 S Canal Road + city: Conneaut Lake + state: PA + zip: 16316 + phone: 814-382-7985 + truck: Z5199 + trailer: Z5122A + +driver_17: + type: Employee + number: 017 + lastname: Oxford + firstname: Terry + payrate: 0.26 + ssn: 364-60-0251 + dob: 19540830 + dl_number: 364600251 + dl_state: MO + dl_expire: 20000723 + hired: 19980402 + tax_status: M + dependents: 1 + street: P.O.BOX 37 + city: Senath + state: MO + zip: 63876 + phone: 573-738-2572 + truck: Z5123 + trailer: Z5123A + +driver_18: + type: Employee + number: 018 + lastname: Carpenter + firstname: James + payrate: 0.25 + ssn: 569-49-7132 + dob: 19640411 + dl_number: 569497132 + dl_state: MO + dl_expire: 20010401 + hired: 19980814 + tax_status: S + dependents: 5 + street: Route 2 Box 254B + city: Doniphan + state: MO + zip: 63935 + phone: 573-996-3370 + truck: Z5137 + trailer: Z5137A + +driver_19: + type: Employee + number: 019 + lastname: Zizzo + firstname: David + payrate: 0.25 + ssn: 391-74-2961 + dob: 19600614 + dl_number: Z200-170-60-214-0 + dl_state: FL + dl_expire: 19980614 + hired: 19980117 + tax_status: S + dependents: 2 + street: 2600 Pineapple Ave. R.V.1 + city: Melbourne + state: FL + zip: 32936 + phone: + truck: Z5093 + trailer: Z5053B + +driver_3: + type: Employee + number: 03 + lastname: Shaw + firstname: Darren L. + payrate: 0.25 + ssn: 245-19-0072 + dob: 19660810 + dl_number: 87395171 + dl_state: TN + dl_expire: 20020810 + hired: 19970909 + tax_status: S + dependents: 0 + street: 6980 Riverbirch Road + city: Walls + state: MS + zip: 38680 + phone: + truck: Z5049 + trailer: Z5053B + +driver_20: + type: Employee + number: 020 + lastname: Moore + firstname: Richard D. + payrate: 0.28 + ssn: 254-98-5196 + dob: 19531122 + dl_number: M600744534220 + dl_state: FL + dl_expire: 20001122 + hired: 19991103 + tax_status: S + dependents: 0 + street: 152 Molton + city: Ringgold + state: GA + zip: 30736 + phone: 706-935-9255 + truck: Z5107 + trailer: Z5107A + +driver_21: + type: Employee + number: 021 + lastname: Gattis + firstname: Lonnie G + payrate: 0.25 + ssn: 493-58-9336 + dob: 19510511 + dl_number: 493589336 + dl_state: MO + dl_expire: 20010922 + hired: 19990106 + tax_status: S + dependents: 2 + street: P.O. Box 743 + city: Malden + state: MO + zip: 63863 + phone: 573-276-5476 + truck: Z5091 + trailer: 91A + +driver_22: + type: Employee + number: 022 + lastname: Mathews + firstname: M. Scott + payrate: 0.25 + ssn: 462-37-2819 + dob: 19621231 + dl_number: 462372819 + dl_state: MS + dl_expire: 20021231 + hired: 19990324 + tax_status: S + dependents: 1 + street: 2960 Greenbriar Cove East + city: Horn Lake + state: MS + zip: 38637 + phone: 601-393-4447 + truck: Z5143 + trailer: + +driver_23: + type: Employee + number: 023 + lastname: Acres + firstname: Brian E. + payrate: 0.25 + ssn: 407-27-5272 + dob: 19720503 + dl_number: A9301930363 + dl_state: KY + dl_expire: 20010531 + hired: 19990507 + tax_status: S + dependents: 0 + street: 514 Balmoral Road + city: Elizabethtown + state: KY + zip: 42701 + phone: 502-765-4648 + truck: Z5123 + trailer: Z5080A + +driver_24: + type: Employee + number: 024 + lastname: Mason + firstname: Dale + payrate: 0.27 + ssn: 452-63-3118 + dob: 19710816 + dl_number: 7074270 + dl_state: AL + dl_expire: 20030629 + hired: 19991108 + tax_status: S + dependents: 0 + street: 112 Penelope Drive + city: Bainbridge + state: GA + zip: 71717 + phone: 901-835-2909 + truck: Z5123 + trailer: Z5054 + +driver_25: + type: Employee + number: 025 + lastname: Bell + firstname: Timothy + payrate: 0.27 + ssn: 425-23-4943 + dob: 19600405 + dl_number: 81141002 + dl_state: TN + dl_expire: 20000405 + hired: 20000107 + tax_status: S + dependents: 1 + street: 6812 Rockbrook Drive + city: Memphis + state: TN + zip: 38141 + phone: 901-795-2393 + truck: Z5143 + trailer: + +driver_26: + type: Employee + number: 026 + lastname: Cameron + firstname: Freddie + payrate: 0.25 + ssn: 429-82-4065 + dob: 19460528 + dl_number: 901072960 + dl_state: AR + dl_expire: 20020528 + hired: 20000202 + tax_status: N + dependents: 1 + street: 2113 J R Circle + city: Newport + state: AR + zip: 72112 + phone: 887-052-35961 + truck: Z5123 + trailer: 123A + +driver_27: + type: Employee + number: 027 + lastname: Gregory + firstname: Kem D. + payrate: 0.26 + ssn: 425-51-8227 + dob: 19681024 + dl_number: 425518227 + dl_state: MS + dl_expire: 20031024 + hired: 20000712 + tax_status: S + dependents: 0 + street: 442 Clark Street + city: Pontotoc + state: MS + zip: 38863 + phone: + truck: Z5107 + trailer: Z5107A + +driver_28: + type: Employee + number: 028 + lastname: Smock + firstname: Terry + payrate: 0.28 + ssn: 336-64-1348 + dob: 19660122 + dl_number: + dl_state: + dl_expire: + hired: 20001017 + tax_status: S + dependents: 0 + street: 385 Westwood Acres + city: Scottshill + state: TN + zip: 38374 + phone: 901-549-9715 + truck: Z5123 + trailer: Z5050A + +driver_29: + type: Employee + number: 029 + lastname: Lever + firstname: Barry + payrate: 0.25 + ssn: 250-11-3024 + dob: 19551227 + dl_number: 004754995 + dl_state: SC + dl_expire: 20051227 + hired: 20001220 + tax_status: M + dependents: 1 + street: 112 Walter Hutto + city: Lexington + state: SC + zip: 29072 + phone: + truck: Z5185 + trailer: Z5107B + +driver_30: + type: Employee + number: 030 + lastname: Williamson + firstname: Charlie + payrate: 0.25 + ssn: 411-17-5695 + dob: 19611129 + dl_number: 52672074 + dl_state: TN + dl_expire: 20061129 + hired: 20010430 + tax_status: M + dependents: 2 + street: 2892 Highway 222 + city: Somerville + state: TN + zip: 38068 + phone: + truck: Z5142 + trailer: + +driver_31: + type: Employee + number: 031 + lastname: Helms + firstname: Hayden + payrate: + ssn: 263-80-5004 + dob: 19440306 + dl_number: + dl_state: + dl_expire: + hired: + tax_status: S + dependents: 2 + street: P.O. Box 4312 + city: Panama City + state: FL + zip: 32401 + phone: + truck: + trailer: + +driver_32: + type: Employee + number: 032 + lastname: Belcher + firstname: Brian + payrate: 0.26 + ssn: 488-82-0383 + dob: 19641229 + dl_number: K096292004 + dl_state: MO + dl_expire: 20061229 + hired: 20020513 + tax_status: M + dependents: 1 + street: P.O. Box 186 + city: Holcomb + state: MO + zip: 63852 + phone: 573-792-3534 + truck: Z5158 + trailer: Z5158A + +driver_33: + type: Employee + number: 033 + lastname: Miller + firstname: Art + payrate: 0.30 + ssn: 409-25-3886 + dob: 19601029 + dl_number: 51065255 + dl_state: TN + dl_expire: 20051029 + hired: 20021122 + tax_status: M + dependents: 2 + street: 642 Pond Road + city: Dickson + state: TN + zip: 37055 + phone: 615-566-1154 + truck: Z5211 + trailer: Z5189B + +driver_34: + type: Employee + number: 034 + lastname: Street + firstname: Timothy D + payrate: 0.30 + ssn: 411-15-4483 + dob: 19621115 + dl_number: 54713797 + dl_state: TN + dl_expire: 20071115 + hired: 20030723 + tax_status: M + dependents: 2 + street: 4372 Long Creek + city: Memphis + state: TN + zip: 38125 + phone: 901-755-6572 + truck: Z5142 + trailer: + +driver_35: + type: Employee + number: 035 + lastname: Mancil + firstname: Hiram + payrate: 0.29 + ssn: 260-84-7701 + dob: 19501215 + dl_number: 260847701 + dl_state: GA + dl_expire: 20051215 + hired: 20050331 + tax_status: + dependents: 1 + street: Rt 2 Box 1176 + city: Willacoochee + state: GA + zip: 31650 + phone: + truck: Z5211 + trailer: + +driver_36: + type: Employee + number: 036 + lastname: Fields + firstname: Thaddeus + payrate: 0.29 + ssn: 413-55-0581 + dob: 19750826 + dl_number: 078823143 + dl_state: TN + dl_expire: 20100826 + hired: 20060616 + tax_status: + dependents: + street: 309 Ivan Road + city: Memphis + state: TN + zip: 38109 + phone: + truck: Z5211 + trailer: + +driver_4: + type: Employee + number: 004 + lastname: Dennis + firstname: Francis + payrate: 0.30 + ssn: 298-68-6297 + dob: 19591029 + dl_number: 910017121 + dl_state: AR + dl_expire: 20101029 + hired: 20070219 + tax_status: S + dependents: 2 + street: 2405 SFC 311 + city: Forrest City + state: AR + zip: 72336 + phone: + truck: Z5211 + trailer: + +driver_7: + type: Employee + number: 007 + lastname: Robert + firstname: Williams + payrate: 0.30 + ssn: 409-21-8297 + dob: 19660523 + dl_number: 059005367 + dl_state: TN + dl_expire: 20110523 + hired: 20080321 + tax_status: M + dependents: 2 + street: 3109 Moringstar Street + city: Memphis + state: TN + zip: 38127 + phone: + truck: Z5199 + trailer: Z5199A + +driver_9: + type: Employee + number: 009 + lastname: Christensen + firstname: Kimberly + payrate: 0.30 + ssn: 448-38-8842 + dob: 19480408 + dl_number: 906581765 + dl_state: TN + dl_expire: 20080408 + hired: 20080213 + tax_status: S + dependents: 3 + street: 5474 Highway 49 South + city: Paragould + state: AR + zip: 72451 + phone: + truck: Z5199 + trailer: Z5196A + +driver_37: + type: Employee + number: 037 + lastname: Jenkins + firstname: Ronnie + payrate: 0.31 + ssn: 228-74-8833 + dob: + dl_number: + dl_state: + dl_expire: + hired: 20080415 + tax_status: M + dependents: 2 + street: 7356 Dunbarton Drive + city: Horn Lake + state: MS + zip: + phone: + truck: Z5199 + trailer: Z5196B + +driver_38: + type: Employee + number: 038 + lastname: McKnight + firstname: David + payrate: 0.29 + ssn: 427-23-3513 + dob: 19641103 + dl_number: 0807475075 + dl_state: TN + dl_expire: 20091103 + hired: 20080701 + tax_status: S + dependents: 2 + street: 274 W Davant + city: Memphis + state: TN + zip: 38109 + phone: + truck: Z5211 + trailer: