2014-10-31 19:30:49 +08:00
|
|
|
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
|
2014-10-31 19:30:49 +08:00
|
|
|
end
|