aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2016-06-13 13:01:01 -0400
committerRafael Mendonça França <rafaelmfranca@gmail.com>2016-06-13 13:01:32 -0400
commitf27a932d6f0a3c991c3e8b1968236c79f2c1936a (patch)
tree23fe8902bced5544e93b16c497a1f3893be158e3 /activerecord
parent6e5b0a184d1f9a567c9434e40304b7d322c9f3a0 (diff)
downloadrails-f27a932d6f0a3c991c3e8b1968236c79f2c1936a.tar.gz
rails-f27a932d6f0a3c991c3e8b1968236c79f2c1936a.tar.bz2
rails-f27a932d6f0a3c991c3e8b1968236c79f2c1936a.zip
Fix error message to talk about the scale not precision of the type
Fixes #25391
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb
index 6318b1c65a..f6860b9aba 100644
--- a/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb
+++ b/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb
@@ -641,7 +641,7 @@ module ActiveRecord
when 1, 2; 'smallint'
when nil, 3, 4; 'integer'
when 5..8; 'bigint'
- else raise(ActiveRecordError, "No integer type has byte size #{limit}. Use a numeric with precision 0 instead.")
+ else raise(ActiveRecordError, "No integer type has byte size #{limit}. Use a numeric with scale 0 instead.")
end
else
super(type, limit, precision, scale)