This repository has been archived on 2020-05-27. You can view files and clone it, but cannot push or open issues/pull-requests.
|
class PhotoFlag < ActiveRecord::Base
|
|
belongs_to :photo, :counter_cache => true
|
|
belongs_to :user
|
|
validates_uniqueness_of :user_id, :scope => :photo_id
|
|
end
|