Add index on outboxes table for status and last_attempted_at

This commit is contained in:
Muhammad Nawzad 2024-04-02 14:50:42 +03:00
parent de7c304524
commit e5ebfb84d0
No known key found for this signature in database
GPG Key ID: B954B6AAE33940B2

View File

@ -21,5 +21,7 @@ class CreateOutboxableOutboxes < ActiveRecord::Migration[7.0]
t.timestamps t.timestamps
end end
add_index :outboxes, %i[status last_attempted_at], name: 'index_outboxes_on_outboxable_status_and_last_attempted_at'
end end
end end