|
|
@ -35,7 +35,7 @@ class HomeworkCommon < ApplicationRecord
|
|
|
|
has_many :homework_review_results, :dependent => :destroy
|
|
|
|
has_many :homework_review_results, :dependent => :destroy
|
|
|
|
|
|
|
|
|
|
|
|
validates :name, length: { maximum: 60 }
|
|
|
|
validates :name, length: { maximum: 60 }
|
|
|
|
validates :description, length: { maximum: 10000 }
|
|
|
|
validates :description, length: { maximum: 15000 }
|
|
|
|
validates :reference_answer, length: { maximum: 5000 }
|
|
|
|
validates :reference_answer, length: { maximum: 5000 }
|
|
|
|
|
|
|
|
|
|
|
|
# after_update :update_activity
|
|
|
|
# after_update :update_activity
|
|
|
|