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