Converting to Elixir
1 min readMay 3, 2020
--
Most elixir apps I build are an api converted from another language with an existing api.
Until the conversion process is complete, it is hard to keep both apis db migrations in sync.
I found this in elixir ecto and I love the pattern.
You can run ecto.dump to create a priv/repo/structure.sql file.
Then your new elixir app can just run ecto.load to start out with the db structure from this file. Nice and easy.