<commit_before>module Cms
  class ContentDocument < ActiveRecord::Base
    self.table_name = :content_documents

    has_attached_file :attachment,
      url: '/content/documents/:id/:basename.:extension',<commit_msg>validations for content document<commit_after>module Cms
  class ContentDocument < ActiveRecord::Base
    self.table_name = :content_documents

    validates :tags, presence: true
    validates :attachment, presence: true

    has_attached_file :attachment,
      url: '/content/documents/:id/:basename.:extension',
{'fraction_non_alphanumeric': 0.09774436090225563, 'fraction_numerical': 0.0, 'mean_word_length': 4.857142857142857, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2535732', 'n_tokens_mistral': 152, 'n_tokens_neox': 148, 'n_words': 32}