# `mix masu.gen.history`
[🔗](https://github.com/hattoriai/masu/blob/v0.7.0/lib/mix/tasks/masu.gen.history.ex#L1)

Writes the migration of the table where `Masu.History.Ecto` keeps the
history of grids' cells, for the repo that keeps it (the app's own, or
another: `--migrations-path priv/history_repo/migrations`).

    $ mix masu.gen.history
    $ mix masu.gen.history --table grid_history --migrations-path priv/other_repo/migrations

Then run `mix ecto.migrate`.

## Options

  * `--table` - the table's name, `masu_history` unless given (pass the
    same `table` to `use Masu.History.Ecto`).
  * `--migrations-path` - where to write it, `priv/repo/migrations`
    unless given.

---

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