No code on initializers should ever touch the database. During upgrades,
that code will run when running migrations, i.e. while the database is
still outdated.
if Delayed::Backend::ActiveRecord::Job.table_exists? &&
Delayed::Backend::ActiveRecord::Job.attribute_names.include?('queue')
PersonNotifier.schedule_all_next_notification_mail
end