Fixed screech setup.
This commit is contained in:
parent
a9e65611fe
commit
99b64347e2
1 changed files with 1 additions and 0 deletions
|
@ -2,6 +2,7 @@ class UpdateTicketState < ActiveRecord::Migration
|
|||
def up
|
||||
add_column :ticket_states, :ignore_escalation, :boolean, null: false, default: false
|
||||
|
||||
return if !Ticket::State.first
|
||||
Ticket::State.create_or_update( id: 3, name: 'pending reminder', state_type_id: Ticket::StateType.find_by(name: 'pending reminder').id, ignore_escalation: true )
|
||||
Ticket::State.create_or_update( id: 4, name: 'closed', state_type_id: Ticket::StateType.find_by(name: 'closed').id, ignore_escalation: true )
|
||||
Ticket::State.create_or_update( id: 5, name: 'merged', state_type_id: Ticket::StateType.find_by(name: 'merged').id, ignore_escalation: true )
|
||||
|
|
Loading…
Reference in a new issue