Skip to content

Commit

Permalink
feat: increase max value length
Browse files Browse the repository at this point in the history
  • Loading branch information
brunomiguelpinto committed Dec 12, 2024
1 parent c716450 commit 8cec54f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/metadata/customer_metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8cec54f

Please sign in to comment.