Skip to content

Commit

Permalink
Add index on outboxes table for status and last_attempted_at
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammadnawzad committed Apr 2, 2024
1 parent de7c304 commit e5ebfb8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/templates/create_outboxable_outboxes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,7 @@ def change

t.timestamps
end

add_index :outboxes, %i[status last_attempted_at], name: 'index_outboxes_on_outboxable_status_and_last_attempted_at'
end
end

0 comments on commit e5ebfb8

Please sign in to comment.