trabajo-afectivo/db/migrate/20180622140531_sequencer_log_level_setting.rb

45 lines
1.3 KiB
Ruby
Raw Permalink Normal View History

2022-01-01 13:38:12 +00:00
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
class SequencerLogLevelSetting < ActiveRecord::Migration[5.1]
def change
# return if it's a new setup
return if !Setting.exists?(name: 'system_init_done')
Setting.create_if_not_exists(
title: 'Sequencer log level',
name: 'sequencer_log_level',
area: 'Core',
description: 'Defines the log levels for various logging actions of the Sequencer.',
options: {},
state: {
sequence: {
start_finish: :debug,
unit: :debug,
result: :debug,
},
state: {
optional: :debug,
set: :debug,
get: :debug,
attribute_initialization: {
start_finish: :debug,
attributes: :debug,
},
parameter_initialization: {
parameters: :debug,
start_finish: :debug,
unused: :debug,
},
expectations_initialization: :debug,
cleanup: {
start_finish: :debug,
remove: :debug,
}
}
},
frontend: false,
)
end
end