activerecord-mysql-unsigned
activerecord-mysql-unsigned copied to clipboard
Introspectively add numeric, >=0, null validations for unsigned columns
It'd be nice if the gem automatically made integer columns have validations (via introspection), e.g.:
validates column, numericality: { only_integer: true, greater_than_or_equal_to: 0, presence: !column_allows_nil }