summaryrefslogtreecommitdiff
path: root/db/migrate/20130125104000_add_dump_variables_parameter.rb
blob: cbd85ef4bf8efef1808e61b384494aee48521997 (plain)
1
2
3
4
5
6
7
8
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