Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ def random_record_for_org(org, klass)
end

def seed_random_item_with_name(organization, name)
base_items = BaseItem.all.map(&:to_h)
# Once we break the link between BaseItem and Item, we can remove the 'kit' BaseItem, and change this to BaseItem.all CLF 20251202
base_items = BaseItem.where.not(reporting_category: nil).map(&:to_h)
base_item = Array.wrap(base_items).sample
base_item[:name] = name
organization.seed_items(base_item)
Expand Down