Skip to content

Commit

Permalink
Fix demo data reset (maybe-finance#1041)
Browse files Browse the repository at this point in the history
* Fix demo data reset

* Only delete test user
  • Loading branch information
tonyvince authored Aug 1, 2024
1 parent 0a21c92 commit f2a2d2f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/demo/generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def reset_family!
end

def clear_data!
User.find_by_email("[email protected]")&.destroy
ExchangeRate.destroy_all
Security.destroy_all
Security::Price.destroy_all
Expand Down

0 comments on commit f2a2d2f

Please sign in to comment.