blob: a8bb30460cbc70623246fe087de54089e13db54b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
class VoicemailSetting < ActiveRecord::Base
self.table_name = 'voicemail_prefs'
self.primary_key = 'username'
attr_accessible :username, :domain, :name_path, :greeting_path, :password, :notify, :attachment, :mark_read, :purge, :sip_account
has_one :sip_account, :foreign_key => 'auth_name'
validates_presence_of :username
validates_presence_of :domain
validates :username, :uniqueness => {:scope => :domain}
end
|