Fix demo data reset (#1041)

* Fix demo data reset

* Only delete test user
This commit was merged in pull request #1041.
This commit is contained in:
Tony Vincent
2024-08-01 14:56:32 +02:00
committed by GitHub
parent 0a21c92643
commit f2a2d2f7e4

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