class RepositoryTextValue < ActiveRecord::Base
  has_one :repository_cell, as: :value
  accepts_nested_attributes_for :repository_cell

  validates :repository_cell, presence: true
end

class RepositoryTextValue < ActiveRecord::Base
  has_one :repository_cell, as: :value
  accepts_nested_attributes_for :repository_cell

  validates :repository_cell, presence: true
  validates :value,
            presence: true,
            length: { maximum: Constants::TEXT_MAX_LENGTH }
end

Add validation of text_value length
Add validation of text_value length [SCI-1267]
