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.rb

9 lines
251 B
Ruby

class Photo < ActiveRecord::Base
#property :id, Integer, :serial => true
#property :filename, String
#property :email_hash, String
#property :created_at, DateTime
validates_presence_of :filename
has_many :votes, :dependent => :destroy
end