Fixes #3776 - Force users to reload after system migration.

This commit is contained in:
Rolf Schmidt 2021-09-29 15:18:47 +01:00 committed by Thorsten Eckel
parent c335147d62
commit 4e4ba091d4

View file

@ -0,0 +1,11 @@
# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
class ReloadAfterCoreWorkflow < ActiveRecord::Migration[4.2]
def up
# return if it's a new setup
return if !Setting.exists?(name: 'system_init_done')
AppVersion.set(true, 'app_version')
end
end