diff options
author | spag <spag@golwen.net> | 2013-01-25 11:56:59 +0100 |
---|---|---|
committer | spag <spag@golwen.net> | 2013-01-25 11:56:59 +0100 |
commit | 076e5b8cc14097efe96932e02fa7ccd7df538495 (patch) | |
tree | d586387794a0115d4b240180009128896079a6ef /db/migrate | |
parent | 8fdb195855ebb27491b48de5b4e0a567a784be50 (diff) |
added dump_variables parameter
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20130125104000_add_dump_variables_parameter.rb | 9 |
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 |