saucy/db/migrate/20240328101458_create_recurring_executions.solid_queue.rb

16 lines
564 B
Ruby
Raw Normal View History

2024-03-28 11:04:46 +00:00
# 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