summaryrefslogtreecommitdiff
path: root/db/migrate/20130213110000_add_sounds_to_parameters.rb
diff options
context:
space:
mode:
authorspag <spag@golwen.net>2013-02-13 12:13:19 +0100
committerspag <spag@golwen.net>2013-02-13 12:13:19 +0100
commit2fc71d2c420fcb328165f91806080367a9fa2928 (patch)
tree862691d6e308987d1a33cd2282ccd084aa95ed2f /db/migrate/20130213110000_add_sounds_to_parameters.rb
parent14b400d563b2d33706491a20e997a1062b9acc69 (diff)
dialplan language handling
Diffstat (limited to 'db/migrate/20130213110000_add_sounds_to_parameters.rb')
-rw-r--r--db/migrate/20130213110000_add_sounds_to_parameters.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/db/migrate/20130213110000_add_sounds_to_parameters.rb b/db/migrate/20130213110000_add_sounds_to_parameters.rb
new file mode 100644
index 0000000..8c4cd94
--- /dev/null
+++ b/db/migrate/20130213110000_add_sounds_to_parameters.rb
@@ -0,0 +1,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/de/callie', :class_type => 'String')
+ end
+
+ def down
+ GsParameter.where(:entity => 'dialplan', :section => 'sounds').destroy_all
+ end
+end