We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4460c7 commit ba9c61fCopy full SHA for ba9c61f
1 file changed
db/seeds.rb
@@ -76,7 +76,8 @@ def random_record_for_org(org, klass)
76
end
77
78
def seed_random_item_with_name(organization, name)
79
- 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
80
+ base_items = BaseItem.where.not(reporting_category: nil).map(&:to_h)
81
base_item = Array.wrap(base_items).sample
82
base_item[:name] = name
83
organization.seed_items(base_item)
0 commit comments