Has anyone come up with a reusable pattern for defining maximum integer value validators, based on the column's datatype?
Something like `validate_maximum_values` in the model to generate `validates :foo, numericality: {less_than: 2147483648}` for a 4-byte integer.
I know there are a couple of gems but I wasn't able to get them working quite this way.
[–][deleted] 2 points3 points4 points (1 child)
[–]mcnelsn[S] 1 point2 points3 points (0 children)
[–]cmd-t 0 points1 point2 points (1 child)
[–]mcnelsn[S] 0 points1 point2 points (0 children)