Packages

Mix task to generate Ecto migrations from SQL schema file

Current section

Files

Jump to
ecto_extract_migrations priv templates multi_statement.eex
Raw

priv/templates/multi_statement.eex

defmodule <%= module_name %> do
use Ecto.Migration
def up do
<%= for statement <- statements do %>
<%= statement %>
<% end %>
end
end