From 25abcdc9236aea1efaaad8683b0f246faffe91f8 Mon Sep 17 00:00:00 2001 From: Skud Date: Sun, 28 Sep 2014 13:50:55 +1000 Subject: [PATCH] Upload tomato varieties to crop database --- db/seeds/README.md | 6 +++++ db/seeds/crops-11-tomatoes.csv | 41 ++++++++++++++++++++++++++++++++++ script/deploy-tasks.sh | 7 ++---- 3 files changed, 49 insertions(+), 5 deletions(-) create mode 100644 db/seeds/README.md create mode 100644 db/seeds/crops-11-tomatoes.csv diff --git a/db/seeds/README.md b/db/seeds/README.md new file mode 100644 index 000000000..c3cfd1902 --- /dev/null +++ b/db/seeds/README.md @@ -0,0 +1,6 @@ +The format for these crop seed files is CSV with the following fields: + +Crop name +Scientific name +English Wikipedia URL +Parent crop name diff --git a/db/seeds/crops-11-tomatoes.csv b/db/seeds/crops-11-tomatoes.csv new file mode 100644 index 000000000..eb28aaa79 --- /dev/null +++ b/db/seeds/crops-11-tomatoes.csv @@ -0,0 +1,41 @@ +adoration tomato,,https://en.wikipedia.org/wiki/Adoration_%28Tomato%29,tomato, +alicante tomato,,https://en.wikipedia.org/wiki/Alicante_%28tomato%29,tomato, +Amish paste tomato,,http://en.wikipedia.org/wiki/Amish_Paste,tomato, +azoychka tomato,,https://en.wikipedia.org/wiki/Azoychka%28Tomato%29,tomato, +beefsteak tomato,,https://en.wikipedia.org/wiki/Beefsteak_(tomato),tomato, +better boy tomato,,https://en.wikipedia.org/wiki/Better_Boy,tomato, +big rainbow tomato,,https://en.wikipedia.org/wiki/Big_Rainbow_(Tomato),tomato, +Blaby special tomato,,https://en.wikipedia.org/wiki/Blaby_Special_(Tomato),tomato, +black krim tomato,,https://en.wikipedia.org/wiki/Black_Krim_%28tomato%29,tomato, +brandywine tomato,,https://en.wikipedia.org/wiki/Brandywine_(tomato),tomato, +campari tomato,,https://en.wikipedia.org/wiki/Campari_tomato,tomato, +Cherokee purple tomato,,https://en.wikipedia.org/wiki/Cherokee_purple,tomato, +currant tomato,solanum pimpinellifolium,https://en.wikipedia.org/wiki/Solanum_pimpinellifolium, +early girl tomato,,https://en.wikipedia.org/wiki/Early_Girl,tomato, +Fourth of July tomato,,https://en.wikipedia.org/wiki/Fourth_of_July_(tomato_variety),tomato, +garden peach tomato,,https://en.wikipedia.org/wiki/Garden_peach_tomato,tomato, +green zebra tomato,,https://en.wikipedia.org/wiki/Green_Zebra,tomato, +hillbilly tomato,,http://en.wikipedia.org/wiki/Hillbilly_(tomato),tomato, +jubilee tomato,,http://en.wikipedia.org/wiki/Jubilee_(tomato),tomato, +lillian's yellow tomato,,http://en.wikipedia.org/wiki/Lillian%27s_Yellow_(tomato),tomato, +Matt's wild cherry tomato,,http://en.wikipedia.org/wiki/Matt%27s_Wild_Cherry,tomato, +mortgage lifter tomato,,http://en.wikipedia.org/wiki/Mortgage_Lifter,tomato, +Mr. Stripey tomato,,http://en.wikipedia.org/wiki/Mr._Stripey,tomato, +Roma tomato,,http://en.wikipedia.org/wiki/Roma_tomato,tomato, +San Marzano tomato,,http://en.wikipedia.org/wiki/San_Marzano_tomato,tomato, +Santorini tomato,,http://en.wikipedia.org/wiki/Santorini_(tomato),tomato, +stupice tomato,,http://en.wikipedia.org/wiki/Super_Sweet_100,tomato, +tigerella tomato,,http://en.wikipedia.org/wiki/Tigerella,tomato, +tomaccio tomato,,http://en.wikipedia.org/wiki/Tomaccio_(tomato),tomato, +traveller tomato,,http://en.wikipedia.org/wiki/Traveller_(tomato),tomato +three sisters tomato,,http://en.wikipedia.org/wiki/Three_Sisters_(tomato),tomato, +Hanover tomato,,http://en.wikipedia.org/wiki/Hanover_tomato,tomato, +celebrity tomato,,http://en.wikipedia.org/wiki/Celebrity_(tomato),tomato, +tomberry,,http://en.wikipedia.org/wiki/Tomberry,tomato, +super sweet 100 tomato,,http://en.wikipedia.org/wiki/Super_Sweet_100,tomato, +marglobe tomato,,http://en.wikipedia.org/wiki/Marglobe,tomato, +grape tomato,,http://en.wikipedia.org/wiki/Grape_tomato,tomato, +cherry tomato,,http://en.wikipedia.org/wiki/Cherry_tomato,tomato, +Aunt Ruby's German green tomato,,http://en.wikipedia.org/wiki/Aunt_Ruby%27s_German_Green,tomato, +white queen tomato,,http://en.wikipedia.org/wiki/White_Queen_tomato,tomato, +pear tomato,,http://en.wikipedia.org/wiki/Pear_tomato,tomato, diff --git a/script/deploy-tasks.sh b/script/deploy-tasks.sh index f861d27ed..ac4068b26 100755 --- a/script/deploy-tasks.sh +++ b/script/deploy-tasks.sh @@ -10,8 +10,5 @@ # echo "YYYY-MM-DD - do something or other" # rake growstuff:oneoff:something -echo "2013-07-18 - zero crop plantings_count" -rake growstuff:oneoff:zero_plantings_count - -echo "2014-08-10 - replace ping with pint in db" -rake growstuff:oneoff:ping_to_pint +echo "2014-09-28 - upload tomatoes" +rake growstuff:import_crops file=db/seeds/crops-11-tomatoes.csv