forked from fixin.me/fixin.me
`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>