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:
commit
6eee673184
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue