mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-04 21:15:19 +02:00
Nested Categories (#1561)
* Prepare entry search for nested categories * Subcategory implementation * Remove caching for test stability
This commit is contained in:
parent
a4d10097d5
commit
77def1db40
31 changed files with 297 additions and 234 deletions
|
@ -90,6 +90,11 @@ class Demo::Generator
|
|||
categories.each do |category|
|
||||
family.categories.create!(name: category, color: COLORS.sample)
|
||||
end
|
||||
|
||||
food = family.categories.find_by(name: "Food & Drink")
|
||||
family.categories.create!(name: "Restaurants", parent_category: food)
|
||||
family.categories.create!(name: "Groceries", parent_category: food)
|
||||
family.categories.create!(name: "Alcohol & Bars", parent_category: food)
|
||||
end
|
||||
|
||||
def create_merchants!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue