# `DripDrop.Migration`
[🔗](https://github.com/agoodway/dripdrop/blob/v0.1.0/lib/dripdrop/migration.ex#L1)

Versioned DripDrop schema migrations for host applications.

# `current_version`

```elixir
@spec current_version() :: pos_integer()
```

Returns the current migration version supported by this library.

# `down`

```elixir
@spec down(keyword()) :: :ok
```

Rolls back migrations to the target version.

## Options

  * `:prefix` - Schema prefix. Defaults to `"dripdrop"`.
  * `:version` - Target version to roll back to. Defaults to `0`.

# `migrated_version`

```elixir
@spec migrated_version(keyword()) :: non_neg_integer()
```

Returns the currently migrated version from the database.

Returns `0` if no migrations have been applied.

# `up`

```elixir
@spec up(keyword()) :: :ok
```

Applies migrations up to the target version.

## Options

  * `:prefix` - Schema prefix. Defaults to `"dripdrop"`.
  * `:version` - Target version. Defaults to `1`.

---

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