class VoicemailBox < ActiveRecord::Base #cant find why or how this relationship would be posible #has_one :user set_primary_key "uniqueid" validates_uniqueness_of :device_id end