Setup solid queue for job processing (#19)

Reviewed-on: #19
This commit is contained in:
Andrew Tomaka 2024-07-26 21:48:32 -04:00
parent 14571a8dc2
commit c23f58a6df
10 changed files with 269 additions and 2 deletions

View file

@ -0,0 +1,15 @@
# This migration comes from solid_queue (originally 20240218110712)
class CreateRecurringExecutions < ActiveRecord::Migration[7.1]
def change
create_table :solid_queue_recurring_executions do |t|
t.references :job, index: { unique: true }, null: false
t.string :task_key, null: false
t.datetime :run_at, null: false
t.datetime :created_at, null: false
t.index [ :task_key, :run_at ], unique: true
end
add_foreign_key :solid_queue_recurring_executions, :solid_queue_jobs, column: :job_id, on_delete: :cascade
end
end