Files
fixin.me/app/models/unit.rb
barbie-bot b31ddd39e4 Fix ArgumentError for text column length validations
`type_for_attribute(:description).limit` returns nil for text columns,
which newer Rails rejects with ArgumentError: :maximum must be a
non-negative Integer. Guard with `if type_for_attribute(...).limit`
to skip the validation when the column has no limit.

Affects Unit and Quantity models.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-12 12:28:54 +00:00

4.9 KiB