1
0
Fork 0
find-us-lunch/app/models/friendship.rb

7 lines
160 B
Ruby
Raw Normal View History

2014-10-15 13:17:36 -04:00
class Friendship < ActiveRecord::Base
belongs_to :user
belongs_to :friend, class_name: 'User'
2014-10-27 12:25:36 -04:00
validates_uniqueness_of :friend_id, :scope => :user_id
2014-10-15 13:17:36 -04:00
end