10 lines
296 B
Ruby
10 lines
296 B
Ruby
# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
|
|
|
|
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
|