2022-01-01 13:38:12 +00:00
|
|
|
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
|
2021-06-01 12:20:20 +00:00
|
|
|
|
2021-07-21 12:00:13 +00:00
|
|
|
Rails.application.reloader.to_prepare do
|
2019-07-04 11:16:55 +00:00
|
|
|
|
2021-07-21 12:00:13 +00:00
|
|
|
next if !ActiveRecord::Base.connected?
|
2019-07-04 11:16:55 +00:00
|
|
|
|
2021-07-21 12:00:13 +00:00
|
|
|
# sync logo to fs / only if settings already exists
|
|
|
|
next if ActiveRecord::Base.connection.tables.exclude?('settings')
|
|
|
|
next if Setting.column_names.exclude?('state_current')
|
|
|
|
|
|
|
|
StaticAssets.sync
|
|
|
|
end
|