1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-19 13:19:39 +02:00

Fix demo data reset (#1041)

* Fix demo data reset

* Only delete test user
This commit is contained in:
Tony Vincent 2024-08-01 14:56:32 +02:00 committed by GitHub
parent 0a21c92643
commit f2a2d2f7e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -52,6 +52,7 @@ class Demo::Generator
end
def clear_data!
User.find_by_email("user@maybe.local")&.destroy
ExchangeRate.destroy_all
Security.destroy_all
Security::Price.destroy_all