# `mix ramal.gen.migration`
[🔗](https://github.com/agustinrojas1/ramal/blob/v0.2.0/lib/mix/tasks/ramal.gen.migration.ex#L2)

Writes a migration that creates the `ramal_branches` table `Ramal.Storage.Postgres` uses.

    $ mix ramal.gen.migration
    $ mix ramal.gen.migration -r MyApp.Repo

The file goes where `mix ecto.gen.migration` would put it: `priv/<repo>/migrations`, or the directory given with
`--migrations-path`. Run it once; a second run refuses when the migration already exists.

## Options

  * `-r`, `--repo` - the repo to generate the migration for, default: the first of `:ecto_repos`
  * `--migrations-path` - the directory to write into
  * `--no-compile`, `--no-deps-check` - as for the Ecto tasks

## Example

    $ mix ramal.gen.migration -r MyApp.Repo
    * creating priv/repo/migrations/20261022120000_create_ramal_branches.exs

---

*Consult [api-reference.md](api-reference.md) for complete listing*
