Caravela.Gen.Migration (Caravela v0.5.0)

Copy Markdown View Source

Generates a single Ecto migration file for every entity in a Caravela.Schema.Domain.

Returns {path, source} — the caller writes the file. The migration file name is timestamped so subsequent runs produce a distinct file.

Summary

Functions

Render the migration for the domain.

Functions

render(domain, opts \\ [])

Render the migration for the domain.

Options:

  • :timestamp — override the numeric prefix (defaults to now())