mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-19 00:27:25 +00:00
Sort Product categories alphabetically by name and fixsample data by fixing taxons taxonomy id
This commit is contained in:
@@ -38,7 +38,7 @@ namespace :openfoodnetwork do
|
||||
taxonomy_root = taxonomy.root
|
||||
|
||||
['Vegetables', 'Fruit', 'Oils', 'Preserves and Sauces', 'Dairy', 'Meat and Fish'].each do |taxon_name|
|
||||
FactoryBot.create(:taxon, name: taxon_name, parent_id: taxonomy_root.id)
|
||||
FactoryBot.create(:taxon, name: taxon_name, parent_id: taxonomy_root.id, taxonomy_id: taxonomy.id)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user