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

Drops the job queue table with the given name, and associated trigger

Options

  • :prefix - the prefix (aka Postgresql schema) containing the table to remove.

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 the Ecto.Migration.timestamps/1 function.