diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-06-13 13:01:01 -0400 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-06-13 13:01:32 -0400 |
commit | f27a932d6f0a3c991c3e8b1968236c79f2c1936a (patch) | |
tree | 23fe8902bced5544e93b16c497a1f3893be158e3 /activerecord/lib | |
parent | 6e5b0a184d1f9a567c9434e40304b7d322c9f3a0 (diff) | |
download | rails-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/lib')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb | 2 |
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) |