trabajo-afectivo/db/migrate/20181203000000_setting_add_email_full_quote_header.rb
2022-01-01 14:38:12 +01:00

36 lines
1.1 KiB
Ruby

# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
class SettingAddEmailFullQuoteHeader < ActiveRecord::Migration[5.1]
def up
# return if it's a new setup
return if !Setting.exists?(name: 'system_init_done')
Setting.create_if_not_exists(
title: 'Email - quote header',
name: 'ui_ticket_zoom_article_email_full_quote_header',
area: 'UI::TicketZoom',
description: 'Enable if you want a timestamped reply header to be automatically inserted in front of quoted messages.',
options: {
form: [
{
display: '',
null: true,
name: 'ui_ticket_zoom_article_email_full_quote_header',
tag: 'boolean',
translate: true,
options: {
true => 'yes',
false => 'no',
},
},
],
},
state: true,
preferences: {
prio: 240,
permission: ['admin.ui'],
},
frontend: true
)
end
end