diff options
author | Marius Peter <dev@marius-peter.com> | 2025-09-04 20:55:03 +0200 |
---|---|---|
committer | Marius Peter <dev@marius-peter.com> | 2025-09-04 20:55:03 +0200 |
commit | 8ba568ae0ebe715b5da453681eb141886f1977a8 (patch) | |
tree | 3bf3a3d5b41286d0a6da8895857314393bae1db2 /db/seeds/4_beds_and_rafts.rb | |
parent | 8f8cea2a0408918629dc8bab03495530861a71f3 (diff) |
Start small, address critical customer needs, /then/ scale.
Diffstat (limited to 'db/seeds/4_beds_and_rafts.rb')
-rw-r--r-- | db/seeds/4_beds_and_rafts.rb | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/db/seeds/4_beds_and_rafts.rb b/db/seeds/4_beds_and_rafts.rb deleted file mode 100644 index 1cd95dc..0000000 --- a/db/seeds/4_beds_and_rafts.rb +++ /dev/null @@ -1,24 +0,0 @@ -BEDS = 14 -RAFTS = 10 - -1.upto(BEDS) do |b| - bed = Bed.find_or_create_by!(location: b) - - crop_name = case b - when 1..2 then "tomatoes" - when 3 then "hot peppers" - when 4 then "chives" - when 5 then "italian basil" - when 6..7 then "cabbage, chinese" - else "lettuce" - end - - 1.upto(RAFTS) do |r| - raft = bed.rafts.find_or_create_by!(location: r) do |raft| - raft.crop = Crop.find_by!(name: crop_name) - end - end -end - -puts "Beds: #{Bed.count}" -puts "Rafts: #{Raft.count}" |