diff --git a/app/models/metadata/customer_metadata.rb b/app/models/metadata/customer_metadata.rb index 07e868d888a..5304d7c6554 100644 --- a/app/models/metadata/customer_metadata.rb +++ b/app/models/metadata/customer_metadata.rb @@ -7,7 +7,7 @@ class CustomerMetadata < ApplicationRecord belongs_to :customer validates :key, presence: true, uniqueness: {scope: :customer_id}, length: {maximum: 20} - validates :value, presence: true, length: {maximum: 40} + validates :value, presence: true, length: {maximum: 100} scope :displayable, -> { where(display_in_invoice: true) } end diff --git a/app/services/validators/metadata_validator.rb b/app/services/validators/metadata_validator.rb index 54e233a9695..e5dd1fcba0c 100644 --- a/app/services/validators/metadata_validator.rb +++ b/app/services/validators/metadata_validator.rb @@ -5,7 +5,7 @@ class MetadataValidator DEFAULT_CONFIG = { max_keys: 5, max_key_length: 20, - max_value_length: 40 + max_value_length: 100 }.freeze attr_reader :metadata, :errors, :config