Skip to content

Commit

Permalink
Merge pull request #2684 from sap-contributions/add-idx-to-delayed-jo…
Browse files Browse the repository at this point in the history
…bs-guid

Add index for delayed_job_guid in jobs table
  • Loading branch information
philippthun authored Feb 16, 2022
2 parents 6943f86 + 311290d commit 322163d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions db/migrations/20220216124400_add_delayed_job_guid_index_to_jobs.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Sequel.migration do
up do
alter_table :jobs do
add_index :delayed_job_guid, name: :jobs_delayed_job_guid_index
end
end

down do
alter_table :jobs do
drop_index :delayed_job_guid, name: :jobs_delayed_job_guid_index
end
end
end

0 comments on commit 322163d

Please sign in to comment.