fix(goals/demo): seed goals in generate_new_user_data_for!

Cloudflare preview entrypoint, FamilyResetJob, and the Settings
"Reset + load sample data" flow all go through generate_new_user_data_for!,
which seeded categories/accounts/transactions/budget but not goals. Move
generate_goals! inside this method (alongside the same call already in
generate_default_data!) so every sample-data surface gets the full
state-coverage matrix.
This commit is contained in:
Guillem Arias
2026-05-18 22:31:18 +02:00
parent 78f97320de
commit aa67f84c21

View File

@@ -72,6 +72,9 @@ class Demo::Generator
create_realistic_accounts!(family)
create_realistic_transactions!(family)
generate_budget_auto_fill!(family)
puts "🎯 Seeding goals..."
generate_goals!(family)
end
family.sync_later