blob: b6fa561de5303b3eb328fd283dd42be2a1507e35 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
class AddAutomaticCallDistributorFunctionKey < ActiveRecord::Migration
def up
softkey_function = SoftkeyFunction.find_or_create_by_name('acd_membership')
gui_function = GuiFunction.find_or_create_by_name("softkey_function_#{softkey_function.name.downcase}_field_in_softkey_form",
:category => 'Softkey edit view',
:description => "Show the softkey function '#{softkey_function.name}' in the softkey form.")
end
def down
softkey_function = SoftkeyFunction.find_by_name('acd_membership')
softkey_function.destroy
GuiFunction.find_by_name("softkey_function_#{softkey_function.name.downcase}_field_in_softkey_form").destroy
end
end
|