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
Summary
Functions
Creates a new PgQue queue.
Uninstalls the PgQue schema and associated functions.
Installs the PgQue schema, tables, and stored procedures.
Accepts optional :queues keyword argument specifying queue names to create.
Functions
Creates a new PgQue queue.
@spec down() :: :ok
Uninstalls the PgQue schema and associated functions.
@spec up(keyword()) :: :ok
Installs the PgQue schema, tables, and stored procedures.
Accepts optional :queues keyword argument specifying queue names to create.