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