Packages

WebSocket-first Elixir framework with auto-generated HTTP MCP APIs

Current section

Files

Jump to
dialup priv templates dialup.gen.aggregate migration.ex.eex
Raw

priv/templates/dialup.gen.aggregate/migration.ex.eex

defmodule <%= "#{base_mod}.Repo.Migrations.Create#{agg_name}Summary" %> do
@moduledoc false
use Ecto.Migration
def change do
create table(:<%= table_name %>) do
<%= for field <- all_unique_fields do %> add :<%= field.name %>, :<%= Mix.Tasks.Dialup.Gen.Aggregate.migration_type(field.type) %>
<% end %> add :status, :string
timestamps()
end
end
end