educoder/app/models/challenge_question.rb

7 lines
138 B

class ChallengeQuestion < ApplicationRecord
belongs_to :challenge_choose
validates :option_name, length: { maximum: 500 }
end