class CompetitionModuleMdContent < ApplicationRecord
  belongs_to :competition_module

  has_many :attachments, as: :container, dependent: :destroy

  # validates :name, presence: true
  validates :content, presence: true
  validates :content, length: { maximum: 10000 , too_long: "不能超过10000个字符"}

end