ecto_job v2.1.0 EctoJob.Migrations.CreateJobTable View Source
Defines a migration to create a table to be used as a job queue. This migration can be run multiple times with different values to create multiple queues.
Link to this section Summary
Functions
Drops the job queue table with the given name, and associated trigger
Adds a job queue table with the given name, and attaches an insert trigger
Link to this section Functions
Link to this function
down(name, opts \\ []) View Source
Drops the job queue table with the given name, and associated trigger
Options
:prefix
- the prefix (aka Postgresql schema) containing the table to remove.
Link to this function
up(name, opts \\ []) View Source
Adds a job queue table with the given name, and attaches an insert trigger.
Options
:prefix
- the prefix (aka Postgresql schema) to create the table in.:timestamps
- A keyword list of options passed to theEcto.Migration.timestamps/1
function.