More specifically I have a Phoenix Application using Ecto and Repo. I would like to flush my database after running each Exunit test which alters the database.
One way I could accomplish this would be to run all of the change
functions in the migrations in priv/repo/migrations/
directory, but I feel that there should be a nicer way.
Perhaps something like running the flush function?
I believe this is already handled for you when running Ecto in sandbox mode, which is the way Phoenix generates the test cases.