Ecto lib where to put migrations?

If I am writing a lib on top of ecto, where should I add migrations to test the lib? In priv/repo/migrations or better suited to having them in test/support/migrations?

I would just keep them in priv/repo/migrations. This allows you to use the Ecto generators and not have to worry about moving them. Anything that depends on your application will not run the migrations in your app when using mix ecto.migrate.

1 Like