module Apartment::Delayed::Job
def self.enqueue(payload_object, options = {})
queues its jobs in the current_schema, rather than the public schema
This is a work-around due to the fact that DJ for some reason always
Will enqueue a job ensuring that it happens within the public schema
def self.enqueue(payload_object, options = {}) Apartment::Database.process do ::Delayed::Job.enqueue(payload_object, options) end end