summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorspag <spag@golwen.net>2013-01-25 11:56:26 +0100
committerspag <spag@golwen.net>2013-01-25 11:56:26 +0100
commit8fdb195855ebb27491b48de5b4e0a567a784be50 (patch)
tree4b594cebb71f40851402c1c84bd9b3e66aa7f411 /db
parent1f990f88faa2d203036e3cc57a167bbb9742c58e (diff)
added voicemail storage parameter
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20130125103500_add_voicemail_storage_parameter.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20130125103500_add_voicemail_storage_parameter.rb b/db/migrate/20130125103500_add_voicemail_storage_parameter.rb
new file mode 100644
index 0000000..35e56af
--- /dev/null
+++ b/db/migrate/20130125103500_add_voicemail_storage_parameter.rb
@@ -0,0 +1,9 @@
+class AddVoicemailStorageParameter < ActiveRecord::Migration
+ def up
+ GsParameter.create(:entity => 'voicemail', :section => 'parameters', :name => 'storage-dir', :value => '/var/lib/freeswitch/voicemail', :class_type => 'String', :description => 'Directory where voicemail messages are stored.')
+ end
+
+ def down
+ GsParameter.where(:entity => 'voicemail', :section => 'parameters', :name => 'storage-dir').destroy_all
+ end
+end