sms-pager/app/models/authentication.rb

5 lines
134 B
Ruby

class Authentication < ActiveRecord::Base
belongs_to :person
validates :uid, presence: true, uniqueness: { scope: :provider }
end