mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-10 14:59:51 +08:00
init project
This commit is contained in:
5
app/models/item_choice.rb
Normal file
5
app/models/item_choice.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class ItemChoice < ApplicationRecord
|
||||
belongs_to :item_bank, touch: true
|
||||
validates :choice_text, presence: true, length: { maximum: 500, too_long: "不能超过500个字符" }
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user