Enable ActiveJob scheduling with mongodb for all models

January, 2021

config/initializers/mongoid.rb

# frozen_string_literal: true

if defined?(Mongoid)
  # GlobalID is used by ActiveJob
  Mongoid::Document.include GlobalID::Identification
  Mongoid::Association::Proxy.include GlobalID::Identification
end