rails/rails — pull request #6349 by erichmenge (2012-05-16 12:44:14+00:00)
Title: Integer limit out of range should be allowed to raise. Closes #6272

As it is if you enter an out of range `:limit` for a migration or new table, the raise is rescued and it defaults to `integer`. Based on `change_schema_test.rb` I guess it must have been because it was expected some people would use `:limit => 11` for MySQL expecting an `int(11)`, which isn't the same thing as an 11 byte int, which is what :limit is for.

I believe this should raise, if it isn't a valid value, rather than silently changing what the user has specified, wrong as it may be.