mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-10 23:09:51 +08:00
init project
This commit is contained in:
9
app/models/challenge_choose.rb
Normal file
9
app/models/challenge_choose.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
class ChallengeChoose < ApplicationRecord
|
||||
default_scope {order("challenge_chooses.position asc")}
|
||||
belongs_to :challenge, optional: true
|
||||
has_many :challenge_tags, :dependent => :destroy
|
||||
has_many :challenge_questions, dependent: :destroy
|
||||
|
||||
validates :subject, length: { maximum: 25000, too_long: "不能超过25000个字符" }
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user