diff options
author | Marius Peter <marius.peter@tutanota.com> | 2025-08-29 14:22:37 +0200 |
---|---|---|
committer | Marius Peter <marius.peter@tutanota.com> | 2025-08-29 14:22:37 +0200 |
commit | 075665c588989ed0decdfb20d83f32b33eed4639 (patch) | |
tree | d9ec78be7338bd51c895b7fb311f081a7c77c45f /db/seeds/3_crops.rb | |
parent | 52b044d6a4278c229992404ad5801769c2d13363 (diff) |
Properly implement bed and raft management logic.
Diffstat (limited to 'db/seeds/3_crops.rb')
-rw-r--r-- | db/seeds/3_crops.rb | 22 |
1 files changed, 11 insertions, 11 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 |