rosa-build/app/models/authentication.rb

8 lines
221 B
Ruby

# -*- encoding : utf-8 -*-
class Authentication < ActiveRecord::Base
belongs_to :user
validates :provider, :uid, :presence => true
validates :uid, :uniqueness => {:scope => :provider, :case_sensitive => false}
end