Skip to content

Commit

Permalink
Fix column type for job_id foreign keys in executions tables
Browse files Browse the repository at this point in the history
No idea how this ended up as `integer`. The initial tables were created
via a migration using `t.references`.
  • Loading branch information
rosa committed Sep 6, 2024
1 parent d273261 commit 4667002
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/generators/solid_queue/install/templates/db/queue_schema.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ActiveRecord::Schema[7.1].define(version: 2024_09_04_193154) do
create_table "solid_queue_blocked_executions", force: :cascade do |t|
t.integer "job_id", null: false
t.bigint "job_id", null: false
t.string "queue_name", null: false
t.integer "priority", default: 0, null: false
t.string "concurrency_key", null: false
Expand All @@ -12,15 +12,15 @@
end

create_table "solid_queue_claimed_executions", force: :cascade do |t|
t.integer "job_id", null: false
t.bigint "job_id", null: false
t.bigint "process_id"
t.datetime "created_at", null: false
t.index [ "job_id" ], name: "index_solid_queue_claimed_executions_on_job_id", unique: true
t.index [ "process_id", "job_id" ], name: "index_solid_queue_claimed_executions_on_process_id_and_job_id"
end

create_table "solid_queue_failed_executions", force: :cascade do |t|
t.integer "job_id", null: false
t.bigint "job_id", null: false
t.text "error"
t.datetime "created_at", null: false
t.index [ "job_id" ], name: "index_solid_queue_failed_executions_on_job_id", unique: true
Expand Down Expand Up @@ -65,7 +65,7 @@
end

create_table "solid_queue_ready_executions", force: :cascade do |t|
t.integer "job_id", null: false
t.bigint "job_id", null: false
t.string "queue_name", null: false
t.integer "priority", default: 0, null: false
t.datetime "created_at", null: false
Expand All @@ -75,7 +75,7 @@
end

create_table "solid_queue_recurring_executions", force: :cascade do |t|
t.integer "job_id", null: false
t.bigint "job_id", null: false
t.string "task_key", null: false
t.datetime "run_at", null: false
t.datetime "created_at", null: false
Expand All @@ -100,7 +100,7 @@
end

create_table "solid_queue_scheduled_executions", force: :cascade do |t|
t.integer "job_id", null: false
t.bigint "job_id", null: false
t.string "queue_name", null: false
t.integer "priority", default: 0, null: false
t.datetime "scheduled_at", null: false
Expand Down

0 comments on commit 4667002

Please sign in to comment.