# `Literature.Migration`

Migrations create the database tables Literature needs.

## Usage
To use migrations in your application you'll need to generate an `Ecto.Migration` that wraps
calls to `Literature.Migrations`:

```bash
mix ecto.gen.migration add_literature
```

Open the generated migration in your editor and call the `up` and `down` functions on
`Literature.Migrations`:

```elixir
defmodule MyApp.Repo.Migrations.AddLiterature do
  use Ecto.Migration

  def up, do: Literature.Migrations.up(version: 1)

  def down, do: Literature.Migrations.down(version: 1)
end
```

This will run the migrations for your database.

Now, run the migration to create the table:

```bash
mix ecto.migrate
```

# `down`

```elixir
@callback down(Keyword.t()) :: :ok
```

# `migrated_version`

```elixir
@callback migrated_version(Keyword.t()) :: non_neg_integer()
```

# `up`

```elixir
@callback up(Keyword.t()) :: :ok
```

# `down`

# `migrated_version`

# `up`

---

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