adopt-a-hydrant/app/models/reminder.rb

8 lines
240 B
Ruby
Raw Normal View History

2011-05-22 14:35:46 +00:00
class Reminder < ActiveRecord::Base
2012-06-18 17:49:28 +00:00
attr_accessible :thing_id, :to_user_id
validates_presence_of :from_user, :to_user, :thing
2012-06-18 17:49:28 +00:00
belongs_to :from_user, class_name: "User"
belongs_to :to_user, class_name: "User"
belongs_to :thing
2011-05-22 14:35:46 +00:00
end