20170714000003_cleanup_cti_log.rb 493 B

1234567891011121314151617181920
  1. # Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
  2. class CleanupCtiLog < ActiveRecord::Migration[4.2]
  3. def up
  4. # return if it's a new setup
  5. return if !Setting.exists?(name: 'system_init_done')
  6. Scheduler.create_if_not_exists(
  7. name: 'Cleanup Cti::Log',
  8. method: 'Cti::Log.cleanup',
  9. period: 1.month,
  10. prio: 2,
  11. active: true,
  12. updated_by_id: 1,
  13. created_by_id: 1,
  14. )
  15. end
  16. end