2021-06-01 12:20:20 +00:00
|
|
|
# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
|
|
|
|
|
2021-04-26 12:23:00 +00:00
|
|
|
class SchedulerSessionTimeout < ActiveRecord::Migration[5.2]
|
|
|
|
def change
|
|
|
|
|
|
|
|
return if !Setting.exists?(name: 'system_init_done')
|
|
|
|
|
|
|
|
Scheduler.find_by(name: 'Cleanup dead sessions.').update(period: 1.hour)
|
|
|
|
end
|
|
|
|
end
|