class Conversations::ReopenSnoozedConversationsJob < ApplicationJob queue_as :low def perform Conversation.where(status: :snoozed).where(snoozed_until: 3.days.ago..Time.current).all.each(&:open!) end end