This repository has been archived on 2020-05-27. You can view files and clone it, but cannot push or open issues/pull-requests.
binaryattraction/app/models/photo_flag.rb

6 lines
139 B
Ruby

class PhotoFlag < ActiveRecord::Base
belongs_to :photo, :counter_cache => true
belongs_to :user
validates_uniqueness_of :user_id
end