summaryrefslogtreecommitdiff
path: root/db/migrate/20130116145500_set_routing_variables.rb
blob: abd8fa6d898aa0e76a12e5ca44f80390ca7e4626 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
class SetRoutingVariables < ActiveRecord::Migration
  def up
    GsParameter.create(:entity => 'call_route', :section => 'failover', :name => '603',  :value => 'true', :class_type => 'Boolean')
    GsParameter.create(:entity => 'call_route', :section => 'failover', :name => '480',  :value => 'true', :class_type => 'Boolean')
    GsParameter.create(:entity => 'call_route', :section => 'failover', :name => 'UNALLOCATED_NUMBER',  :value => 'true', :class_type => 'Boolean')
    GsParameter.create(:entity => 'call_route', :section => 'failover', :name => 'NORMAL_TEMPORARY_FAILURE',  :value => 'true', :class_type => 'Boolean')
  end

  def down
  	GsParameter.where(:entity => 'call_route', :section => 'failover').destroy_all
  end
end