mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-21 14:19:39 +02:00
Fix demo data reset (#1041)
* Fix demo data reset * Only delete test user
This commit is contained in:
parent
0a21c92643
commit
f2a2d2f7e4
1 changed files with 1 additions and 0 deletions
|
@ -52,6 +52,7 @@ class Demo::Generator
|
||||||
end
|
end
|
||||||
|
|
||||||
def clear_data!
|
def clear_data!
|
||||||
|
User.find_by_email("user@maybe.local")&.destroy
|
||||||
ExchangeRate.destroy_all
|
ExchangeRate.destroy_all
|
||||||
Security.destroy_all
|
Security.destroy_all
|
||||||
Security::Price.destroy_all
|
Security::Price.destroy_all
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue