Using setup_all with database?

I made progress with this. Thanks to this blog post

In case someone stumbles in this problem here is what worked for me

in my setup_all block I added these lines in the top

:ok = Ecto.Adapters.SQL.Sandbox.checkout(Repo)
    Ecto.Adapters.SQL.Sandbox.mode(Repo, :auto)

Now I need to research a good cleanup strategy :smiley:

7 Likes