aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2016-06-14 08:10:05 +0900
committerRyuta Kamizono <kamipo@gmail.com>2016-08-07 08:58:43 +0900
commitd93fc73f111fc1f5e8bd27afe09ef9c0763584a3 (patch)
tree97b7163aa14c2c7c85e0164ec96fe30ac68300db /activerecord
parent0d12708f3967fe93c172b30bd3e98e4433761c36 (diff)
downloadrails-d93fc73f111fc1f5e8bd27afe09ef9c0763584a3.tar.gz
rails-d93fc73f111fc1f5e8bd27afe09ef9c0763584a3.tar.bz2
rails-d93fc73f111fc1f5e8bd27afe09ef9c0763584a3.zip
Fix error message for out of range byte size integer value for consistency
Related f27a932, #25391.
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb2
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 cc820036ca..bb1b753a37 100644
--- a/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb
+++ b/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb
@@ -930,7 +930,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