# `Fleet.Migration`
[🔗](https://github.com/kuku/fleet/blob/main/lib/fleet/migration.ex#L1)

Ecto migration helper to install and uninstall the PgQue database schema and functions.

## Example

    defmodule MyApp.Repo.Migrations.AddFleet do
      use Ecto.Migration

      def up do
        Fleet.Migration.up()
      end

      def down do
        Fleet.Migration.down()
      end
    end

# `create_queue`

```elixir
@spec create_queue(String.t() | atom()) :: :ok
```

Creates a new PgQue queue.

# `down`

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

Uninstalls the PgQue schema and associated functions.

# `up`

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

Installs the PgQue schema, tables, and stored procedures.
Accepts optional `:queues` keyword argument specifying queue names to create.

---

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