diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2016-08-17 02:58:19 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-17 02:58:19 -0300 |
commit | 6eee67318483c64bd864dc845550f27d45fa984c (patch) | |
tree | 1f791d090efb26a0c382c37eec0a4e499e095a72 /activerecord/lib/active_record/connection_adapters | |
parent | 32e25e812df3a6bda577a835b38aed80c5253bad (diff) | |
parent | d93fc73f111fc1f5e8bd27afe09ef9c0763584a3 (diff) | |
download | rails-6eee67318483c64bd864dc845550f27d45fa984c.tar.gz rails-6eee67318483c64bd864dc845550f27d45fa984c.tar.bz2 rails-6eee67318483c64bd864dc845550f27d45fa984c.zip |
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
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb b/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb index e7efc4caf7..f09c9c9e7f 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb @@ -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 |