trabajo-afectivo/db/migrate/20200806122951_cti_user_profile.rb

22 lines
633 B
Ruby
Raw Normal View History

class CtiUserProfile < ActiveRecord::Migration[5.2]
def change
# return if it's a new setup
return if !Setting.exists?(name: 'system_init_done')
Setting.create_if_not_exists(
title: 'cti customer last activity',
name: 'cti_customer_last_activity',
area: 'Integration::Cti',
description: 'Defines the range in seconds of customer activity to trigger the user profile dialog on call.',
options: {},
state: 30.days,
preferences: {
prio: 2,
permission: ['admin.integration'],
},
frontend: false,
)
end
end