EctoJob.Migrations.CreateJobTable (ecto_job v3.1.0) 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 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.
  • :version - the major version of the EctoJob library used to generate the table
  • :timestamps - A keyword list of options passed to the Ecto.Migration.timestamps/1 function.