summaryrefslogtreecommitdiff
path: root/db/migrate/20130213110000_add_sounds_to_parameters.rb
blob: 00c59bc1fb1ef1a6a6b793b0e2dd096da18735a6 (plain)
1
2
3
4
5
6
7
8
9
10
class AddSoundsToParameters < ActiveRecord::Migration
  def up
    GsParameter.create(:entity => 'dialplan', :section => 'sounds', :name => 'en',  :value => '/opt/freeswitch/sounds/en/us/callie', :class_type => 'String')
    GsParameter.create(:entity => 'dialplan', :section => 'sounds', :name => 'de',  :value => '/opt/freeswitch/sounds/de/tts/bits1-hsmm', :class_type => 'String')
  end

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