add relationship
parent
ad96f89656
commit
309b0e7374
|
@ -4,6 +4,7 @@ class Photo < ActiveRecord::Base
|
|||
attr_protected :email_hash
|
||||
|
||||
has_many :votes, :dependent => :destroy
|
||||
has_many :photo_favorites, :dependent => :destroy
|
||||
|
||||
before_create :validate_image_sanity
|
||||
before_create :hashify_email
|
||||
|
|
Reference in New Issue