diff options
Diffstat (limited to 'db/seeds/1_nutrients.rb')
-rw-r--r-- | db/seeds/1_nutrients.rb | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/db/seeds/1_nutrients.rb b/db/seeds/1_nutrients.rb deleted file mode 100644 index dab2249..0000000 --- a/db/seeds/1_nutrients.rb +++ /dev/null @@ -1,24 +0,0 @@ -NUTRIENTS = [ - [ "nno3", "nitrate" ], - [ "p", "phosphore" ], - [ "k", "potassium" ], - [ "ca", "calcium" ], - [ "mg", "magnésium" ], - [ "s", "soufre" ], - [ "na", "sodium" ], - [ "cl", "chlore" ], - [ "si", "silice" ], - [ "fe", "fer" ], - [ "zn", "zinc" ], - [ "b", "bore" ], - [ "mn", "manganèse" ], - [ "cu", "cuivre" ], - [ "mo", "molybdène" ], - [ "nnh4", "ammonium" ] -] - -NUTRIENTS.each do |formula, name| - Nutrient.find_or_create_by!(formula:) { |n| n.name = name } -end - -puts "Nutrients: #{Nutrient.count}" |