Call some actions before populate db with seeds #1694
Unanswered
damienroche
asked this question in
Help
Replies: 1 comment
-
In tests if (process.env.NODE_ENV === 'testing') {
// Do the cleanup
// Easiest is to just rollback all migrations and then remigrate everything
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
In a testing environment, I would like to empty the database before populate the database with seeds.
Someone have an idea ?
Beta Was this translation helpful? Give feedback.
All reactions