Skip to content
Permalink
4f2f61558d
Go to file
 
 
Cannot retrieve contributors at this time
6 lines (6 sloc) 212 Bytes
class Relationship < ActiveRecord::Base
belongs_to :follower, class_name: "User"
belongs_to :followed, class_name: "User"
validates :follower_id, presence: true
validates :followed_id, presence: true
end
You can’t perform that action at this time.