How to do migrations on Elixir 1.9's mix release?

Upgrade to latest Ecto SQL and do this:

https://github.com/elixir-ecto/ecto_sql/pull/113

For environment variables, you can rename config/prod.secret.exs to config/releases.exs and regularly access System.fetch_env!(“DB_NAME”) in there. See the release docs for more info.