diff options
Diffstat (limited to 'db/seeds')
-rw-r--r-- | db/seeds/3_crops.rb | 22 | ||||
-rw-r--r-- | db/seeds/4_beds_and_rafts.rb | 2 |
2 files changed, 12 insertions, 12 deletions
diff --git a/db/seeds/3_crops.rb b/db/seeds/3_crops.rb index 2957188..6a5c10f 100644 --- a/db/seeds/3_crops.rb +++ b/db/seeds/3_crops.rb @@ -104,17 +104,17 @@ RASPBERRY = { } [ - [ "lettuce", 0, LEAFY ], - [ "kale", 0, LEAFY ], - [ "chinese cabbage", 0, LEAFY ], - [ "tomatoes", 1, TOMATO ], - [ "raspberries", 1, RASPBERRY ], - [ "strawberries", 1, STRAWBERRY ], - [ "hot peppers", 1, HOT_PEPPER ], - [ "parsley", 2, HERB ], - [ "chives", 2, HERB ], - [ "italian basil", 2, HERB ], - [ "dill", 2, HERB ] + [ "lettuce", 0, LEAFY ], + [ "kale", 0, LEAFY ], + [ "cabbage, chinese", 0, LEAFY ], + [ "tomatoes", 1, TOMATO ], + [ "raspberries", 1, RASPBERRY ], + [ "strawberries", 1, STRAWBERRY ], + [ "hot peppers", 1, HOT_PEPPER ], + [ "parsley", 2, HERB ], + [ "chives", 2, HERB ], + [ "italian basil", 2, HERB ], + [ "dill", 2, HERB ] ].each do |name, type, nutrient_requirements| Crop.find_or_create_by!(name: name) do |c| c.crop_type = type diff --git a/db/seeds/4_beds_and_rafts.rb b/db/seeds/4_beds_and_rafts.rb index 0105260..1cd95dc 100644 --- a/db/seeds/4_beds_and_rafts.rb +++ b/db/seeds/4_beds_and_rafts.rb @@ -9,7 +9,7 @@ RAFTS = 10 when 3 then "hot peppers" when 4 then "chives" when 5 then "italian basil" - when 6..7 then "chinese cabbage" + when 6..7 then "cabbage, chinese" else "lettuce" end |