Sha256: fe1a741a92371d84d8b9a6be493d7ad469097c2c816d8b3d881bc7081f33c804
Contents?: true
Size: 249 Bytes
Versions: 2
Compression:
Stored size: 249 Bytes
Contents
class Relationship < ActiveRecord::Base attr_accessible :followed_id belongs_to :follower, class_name: "User" belongs_to :followed, class_name: "User" validates :follower_id, presence: true validates :followed_id, presence: true end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
guara-0.0.3 | app/models/relationship.rb |
guara-0.0.1.rc | app/models/relationship.rb |