aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2016-11-29 11:10:39 -0500
committerGitHub <noreply@github.com>2016-11-29 11:10:39 -0500
commit4806317b65314c28a2608fc4e55fb0a160db2b7d (patch)
tree3491b739a590870ea593ce2a1264834f77f7f1a8 /activerecord/test/cases
parent47b20c7ff74c72ade4c3c9c4a134166ebdbc400f (diff)
parent32ea84df6f4236125ea9e1f91a0685ccea2bfe4a (diff)
downloadrails-4806317b65314c28a2608fc4e55fb0a160db2b7d.tar.gz
rails-4806317b65314c28a2608fc4e55fb0a160db2b7d.tar.bz2
rails-4806317b65314c28a2608fc4e55fb0a160db2b7d.zip
Merge pull request #27126 from kamipo/fix_unsigned_with_zerofill
Fix that unsigned with zerofill is treated as signed
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r--activerecord/test/cases/adapters/mysql2/unsigned_type_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/cases/adapters/mysql2/unsigned_type_test.rb b/activerecord/test/cases/adapters/mysql2/unsigned_type_test.rb
index 452f8d5ae8..59475ad177 100644
--- a/activerecord/test/cases/adapters/mysql2/unsigned_type_test.rb
+++ b/activerecord/test/cases/adapters/mysql2/unsigned_type_test.rb
@@ -48,6 +48,7 @@ class Mysql2UnsignedTypeTest < ActiveRecord::Mysql2TestCase
t.unsigned_bigint :unsigned_bigint_t
t.unsigned_float :unsigned_float_t
t.unsigned_decimal :unsigned_decimal_t, precision: 10, scale: 2
+ t.column :unsigned_zerofill, "int unsigned zerofill"
end
@connection.columns("unsigned_types").select { |c| /^unsigned_/.match?(c.name) }.each do |column|