parent
6d8a7f5498
commit
be6b16d3f3
@ -1,3 +1,5 @@
|
||||
class ItemChoice < ApplicationRecord
|
||||
belongs_to :item_bank, touch: true
|
||||
validates :choice_text, presence: true, length: { maximum: 500, too_long: "不能超过500个字符" }
|
||||
|
||||
end
|
||||
|
Loading…
Reference in new issue