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

10 lines
310 B
Ruby
Raw Permalink Normal View History

2011-05-22 14:35:46 +00:00
class Reminder < ActiveRecord::Base
include ActiveModel::ForbiddenAttributesProtection
2014-04-01 08:15:29 +00:00
belongs_to :from_user, class_name: 'User'
belongs_to :thing
2014-04-01 08:15:29 +00:00
belongs_to :to_user, class_name: 'User'
validates :from_user, presence: true
validates :thing, presence: true
validates :to_user, presence: true
2011-05-22 14:35:46 +00:00
end