|
|
@ -36,7 +36,7 @@ class HomeworkCommon < ApplicationRecord
|
|
|
|
|
|
|
|
|
|
|
|
validates :name, length: { maximum: 60 }
|
|
|
|
validates :name, length: { maximum: 60 }
|
|
|
|
validates :description, length: { maximum: 15000 }
|
|
|
|
validates :description, length: { maximum: 15000 }
|
|
|
|
validates :reference_answer, length: { maximum: 5000 }
|
|
|
|
validates :reference_answer, length: { maximum: 15000 }
|
|
|
|
|
|
|
|
|
|
|
|
# after_update :update_activity
|
|
|
|
# after_update :update_activity
|
|
|
|
before_destroy :update_homework_bank_quotes
|
|
|
|
before_destroy :update_homework_bank_quotes
|
|
|
|