summaryrefslogtreecommitdiff
path: root/db/migrate/20130125104000_add_dump_variables_parameter.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20130125104000_add_dump_variables_parameter.rb')
-rw-r--r--db/migrate/20130125104000_add_dump_variables_parameter.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20130125104000_add_dump_variables_parameter.rb b/db/migrate/20130125104000_add_dump_variables_parameter.rb
new file mode 100644
index 0000000..cbd85ef
--- /dev/null
+++ b/db/migrate/20130125104000_add_dump_variables_parameter.rb
@@ -0,0 +1,9 @@
+class AddDumpVariablesParameter < ActiveRecord::Migration
+ def up
+ GsParameter.create(:entity => 'dialplan', :section => 'parameters', :name => 'dump_variables', :value => 'false', :class_type => 'Boolean', :description => 'Log dialplan variables.')
+ end
+
+ def down
+ GsParameter.where(:entity => 'dialplan', :section => 'parameters', :name => 'dump_variables').destroy_all
+ end
+end