socialforge/app/models/homework_evaluation.rb

10 lines
228 B
Ruby
Raw Normal View History

class HomeworkEvaluation < ActiveRecord::Base
attr_accessible :homework_attach_id, :user_id
belongs_to :homework_attach
belongs_to :user
2014-11-02 14:38:43 +08:00
validate :user, presence: true
validate :homework_attach, presence: true
end