|
10 | 10 | # |
11 | 11 | # It's strongly recommended that you check this file into your version control system. |
12 | 12 |
|
13 | | -ActiveRecord::Schema[7.1].define(version: 2026_01_28_024814) do |
| 13 | +ActiveRecord::Schema[7.1].define(version: 2026_02_19_014106) do |
14 | 14 | # These are extensions that must be enabled in order to support this database |
15 | 15 | enable_extension "pgcrypto" |
16 | 16 | enable_extension "plpgsql" |
|
72 | 72 | t.datetime "enqueued_at" |
73 | 73 | t.datetime "discarded_at" |
74 | 74 | t.datetime "finished_at" |
| 75 | + t.datetime "jobs_finished_at" |
75 | 76 | end |
76 | 77 |
|
77 | 78 | create_table "good_job_executions", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| |
|
134 | 135 | t.index ["active_job_id", "created_at"], name: "index_good_jobs_on_active_job_id_and_created_at" |
135 | 136 | t.index ["batch_callback_id"], name: "index_good_jobs_on_batch_callback_id", where: "(batch_callback_id IS NOT NULL)" |
136 | 137 | t.index ["batch_id"], name: "index_good_jobs_on_batch_id", where: "(batch_id IS NOT NULL)" |
| 138 | + t.index ["concurrency_key", "created_at"], name: "index_good_jobs_on_concurrency_key_and_created_at" |
137 | 139 | t.index ["concurrency_key"], name: "index_good_jobs_on_concurrency_key_when_unfinished", where: "(finished_at IS NULL)" |
138 | 140 | t.index ["cron_key", "created_at"], name: "index_good_jobs_on_cron_key_and_created_at_cond", where: "(cron_key IS NOT NULL)" |
139 | 141 | t.index ["cron_key", "cron_at"], name: "index_good_jobs_on_cron_key_and_cron_at_cond", unique: true, where: "(cron_key IS NOT NULL)" |
140 | | - t.index ["finished_at"], name: "index_good_jobs_jobs_on_finished_at", where: "((retried_good_job_id IS NULL) AND (finished_at IS NOT NULL))" |
| 142 | + t.index ["finished_at"], name: "index_good_jobs_jobs_on_finished_at_only", where: "(finished_at IS NOT NULL)" |
| 143 | + t.index ["job_class"], name: "index_good_jobs_on_job_class" |
141 | 144 | t.index ["labels"], name: "index_good_jobs_on_labels", where: "(labels IS NOT NULL)", using: :gin |
142 | 145 | t.index ["locked_by_id"], name: "index_good_jobs_on_locked_by_id", where: "(locked_by_id IS NOT NULL)" |
143 | 146 | t.index ["priority", "created_at"], name: "index_good_job_jobs_for_candidate_lookup", where: "(finished_at IS NULL)" |
|
0 commit comments