mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 11:50:49 +08:00
6 lines
184 B
Ruby
6 lines
184 B
Ruby
class ItemChoice < ApplicationRecord
|
|
belongs_to :item_bank, touch: true
|
|
validates :choice_text, presence: true, length: { maximum: 500, too_long: "不能超过500个字符" }
|
|
|
|
end
|