1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #25396 from kamipo/fix_error_message_for_out_of_range_integer_value

Fix error message for out of range byte size integer value for consistency
This commit is contained in:
Rafael França 2016-08-17 02:58:19 -03:00 committed by GitHub
commit 6eee673184

View file

@ -922,7 +922,7 @@ module ActiveRecord
when 3; "mediumint"
when nil, 4; "int"
when 5..8; "bigint"
else raise(ActiveRecordError, "No integer type has byte size #{limit}")
else raise(ActiveRecordError, "No integer type has byte size #{limit}. Use a decimal with scale 0 instead.")
end
end