Skip to content

Commit

Permalink
Add job batches to queue_schema.rb as well
Browse files Browse the repository at this point in the history
  • Loading branch information
jpcamara committed Nov 22, 2024
1 parent 074a659 commit 8099030
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions test/dummy/db/queue_schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,22 @@
t.index ["job_id"], name: "index_solid_queue_failed_executions_on_job_id", unique: true
end

create_table "solid_queue_job_batches", charset: "utf8mb4", collation: "utf8mb4_0900_ai_ci", force: :cascade do |t|
t.bigint "parent_job_batch_id"
t.text "on_finish_active_job"
t.text "on_success_active_job"
t.text "on_failure_active_job"
t.datetime "finished_at"
t.datetime "changed_at"
t.datetime "last_changed_at"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["changed_at"], name: "index_solid_queue_job_batches_on_changed_at"
t.index ["finished_at"], name: "index_solid_queue_job_batches_on_finished_at"
t.index ["last_changed_at"], name: "index_solid_queue_job_batches_on_last_changed_at"
t.index ["parent_job_batch_id"], name: "index_solid_queue_job_batches_on_parent_job_batch_id"
end

create_table "solid_queue_jobs", charset: "utf8mb4", collation: "utf8mb4_0900_ai_ci", force: :cascade do |t|
t.string "queue_name", null: false
t.string "class_name", null: false
Expand All @@ -49,7 +65,9 @@
t.string "concurrency_key"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.bigint "batch_id"
t.index ["active_job_id"], name: "index_solid_queue_jobs_on_active_job_id"
t.index ["batch_id"], name: "index_solid_queue_jobs_on_batch_id"
t.index ["class_name"], name: "index_solid_queue_jobs_on_class_name"
t.index ["finished_at"], name: "index_solid_queue_jobs_on_finished_at"
t.index ["queue_name", "finished_at"], name: "index_solid_queue_jobs_for_filtering"
Expand Down Expand Up @@ -135,6 +153,7 @@
add_foreign_key "solid_queue_blocked_executions", "solid_queue_jobs", column: "job_id", on_delete: :cascade
add_foreign_key "solid_queue_claimed_executions", "solid_queue_jobs", column: "job_id", on_delete: :cascade
add_foreign_key "solid_queue_failed_executions", "solid_queue_jobs", column: "job_id", on_delete: :cascade
add_foreign_key "solid_queue_jobs", "solid_queue_job_batches", column: "batch_id", on_delete: :cascade
add_foreign_key "solid_queue_ready_executions", "solid_queue_jobs", column: "job_id", on_delete: :cascade
add_foreign_key "solid_queue_recurring_executions", "solid_queue_jobs", column: "job_id", on_delete: :cascade
add_foreign_key "solid_queue_scheduled_executions", "solid_queue_jobs", column: "job_id", on_delete: :cascade
Expand Down

0 comments on commit 8099030

Please sign in to comment.