20230303092229_session_spool_cleanup.rb 274 B

12345678910
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. class SessionSpoolCleanup < ActiveRecord::Migration[6.1]
  3. def change
  4. # return if it's a new setup
  5. return if !Setting.exists?(name: 'system_init_done')
  6. Sessions.spool_delete
  7. end
  8. end