canvas-lms/db/migrate/20200323153455_add_pending_...

10 lines
290 B
Ruby

class AddPendingDelayedMessagesIndex < ActiveRecord::Migration[5.2]
tag :postdeploy
disable_ddl_transaction!
def change
add_index :delayed_messages, [:send_at], where: "workflow_state = 'pending'",
name: "index_delayed_messages_pending", algorithm: :concurrently
end
end