mix ash_age.gen.migration (AshAge v1.0.0)

Copy Markdown View Source

Generates a timestamped Ecto migration with Apache AGE boilerplate.

$ mix ash_age.gen.migration NAME

The generated migration uses up/down (not change) because AGE execute/1 calls are not reversible.

Arguments

  • NAME — The migration name in snake_case (e.g., create_my_graph)

Options

  • -r, --repo — The repo to generate the migration for
  • --migrations-path — Custom path for the migration file

Examples

$ mix ash_age.gen.migration create_my_graph
$ mix ash_age.gen.migration add_person_label -r MyApp.Repo