20210923075329_remove_otrs_diff_worker_scheduler_entry.rb 330 B

12345678910
  1. # Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
  2. class RemoveOtrsDiffWorkerSchedulerEntry < ActiveRecord::Migration[6.0]
  3. def change
  4. # return if it's a new setup
  5. return if !Setting.exists?(name: 'system_init_done')
  6. Scheduler.find_by(method: 'Import::OTRS.diff_worker')&.destroy
  7. end
  8. end