Schema file for Phoenix migrations

Everything that @hubertlepicki mentioned is true. Also, if you want to run it automatically you can change the ecto.migrate task with an alias to mix.exs:

"ecto.migrate": ["ecto.migrate", "ecto.dump"]

This should dump the database structure every time you run migrations.

15 Likes