Merge branch 'dev_aliyun' of https://bdgit.educoder.net/Hjqreturn/educoder into dev_aliyun
commit
effeb25e45
@ -1,3 +1,4 @@
|
|||||||
class ItemAnalysis < ApplicationRecord
|
class ItemAnalysis < ApplicationRecord
|
||||||
belongs_to :item_bank, touch: true
|
belongs_to :item_bank, touch: true
|
||||||
|
validates :analysis, length: { maximum: 5000, too_long: "不能超过5000个字符" }
|
||||||
end
|
end
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
class ItemChoice < ApplicationRecord
|
class ItemChoice < ApplicationRecord
|
||||||
belongs_to :item_bank, touch: true
|
belongs_to :item_bank, touch: true
|
||||||
|
validates :choice_text, presence: true, length: { maximum: 500, too_long: "不能超过500个字符" }
|
||||||
|
|
||||||
end
|
end
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
json.(@course, :id, :name, :credit)
|
json.(@course, :id, :name, :credit, :end_date)
|
||||||
json.course_list_name @course.course_list&.name
|
json.course_list_name @course.course_list&.name
|
After Width: | Height: | Size: 156 KiB |
Loading…
Reference in new issue