Skip to content

Commit 25e85c4

Browse files
committed
Reflect new migration on initial schema
People installing Solid Queue for the first time will get the final schema. Migrations are idempotent so they can later update and run migrations without any problems.
1 parent 677fa5f commit 25e85c4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/generators/solid_queue/install/templates/db/queue_schema.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@
1515
t.bigint "job_id", null: false
1616
t.bigint "process_id"
1717
t.datetime "created_at", null: false
18+
t.string "process_name"
1819
t.index [ "job_id" ], name: "index_solid_queue_claimed_executions_on_job_id", unique: true
1920
t.index [ "process_id", "job_id" ], name: "index_solid_queue_claimed_executions_on_process_id_and_job_id"
21+
t.index [ "process_name" ], name: "index_solid_queue_claimed_executions_on_process_name"
2022
end
2123

2224
create_table "solid_queue_failed_executions", force: :cascade do |t|
@@ -60,7 +62,7 @@
6062
t.datetime "created_at", null: false
6163
t.string "name", null: false
6264
t.index [ "last_heartbeat_at" ], name: "index_solid_queue_processes_on_last_heartbeat_at"
63-
t.index [ "name", "supervisor_id" ], name: "index_solid_queue_processes_on_name_and_supervisor_id", unique: true
65+
t.index [ "name" ], name: "index_solid_queue_processes_on_name", unique: true
6466
t.index [ "supervisor_id" ], name: "index_solid_queue_processes_on_supervisor_id"
6567
end
6668

0 commit comments

Comments
 (0)