From 3fa9ca800128be6aa1326a0441017bf6da3884ec Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 4 Jun 2018 14:59:16 +0200 Subject: [PATCH] Improved logging messages. --- ...0001_setting_add_ticket_auto_assignment.rb | 51 ------------------- 1 file changed, 51 deletions(-) delete mode 100644 db/migrate/20180212000001_setting_add_ticket_auto_assignment.rb diff --git a/db/migrate/20180212000001_setting_add_ticket_auto_assignment.rb b/db/migrate/20180212000001_setting_add_ticket_auto_assignment.rb deleted file mode 100644 index 0fa2703ff..000000000 --- a/db/migrate/20180212000001_setting_add_ticket_auto_assignment.rb +++ /dev/null @@ -1,51 +0,0 @@ -class SettingAddTicketAutoAssignment < ActiveRecord::Migration[5.1] - def up - - # return if it's a new setup - return if !Setting.find_by(name: 'system_init_done') - - Setting.create_if_not_exists( - title: 'Auto Assigment', - name: 'ticket_auto_assignment', - area: 'Web::Base', - description: 'Enable ticket auto assignment.', - options: { - form: [ - { - display: '', - null: true, - name: 'ticket_auto_assignment', - tag: 'boolean', - options: { - true => 'yes', - false => 'no', - }, - }, - ], - }, - preferences: { - authentication: true, - permission: ['admin.ticket_auto_assignment'], - }, - state: false, - frontend: true - ) - Setting.create_if_not_exists( - title: 'Time Accounting Selector', - name: 'ticket_auto_assignment_selector', - area: 'Web::Base', - description: 'Enable auto assignment for following matching tickets.', - options: { - form: [ - {}, - ], - }, - preferences: { - authentication: true, - permission: ['admin.ticket_auto_assignment'], - }, - state: { condition: { 'ticket.state_id' => { operator: 'is', value: Ticket::State.by_category(:work_on).pluck(:id) } } }, - frontend: true - ) - end -end