Current section
Files
Jump to
Current section
Files
lib/templates/migration/migration.eex
defmodule <%= assigns.app_name %>.Repo.Migrations.Create<%= assigns.repo_name %> do
use Ecto.Migration
def change do
create table(:<%= assigns.table_name %><%= assigns.options %>) do
<%= for field <- assigns.fields do %><%= field %>
<% end %>
timestamps()
end
end
end