diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-08-27 22:18:23 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-27 22:18:23 +0900 |
commit | 7ff3bc125373c76e58f46463f6cff6dac15b15dd (patch) | |
tree | 8fc1011445cd1f90c6e3695085d2a22d6f2e381d /activerecord/test/cases/adapters/mysql2 | |
parent | 376e19c93e8bd03a19005ab04f5a8832182058e0 (diff) | |
download | rails-7ff3bc125373c76e58f46463f6cff6dac15b15dd.tar.gz rails-7ff3bc125373c76e58f46463f6cff6dac15b15dd.tar.bz2 rails-7ff3bc125373c76e58f46463f6cff6dac15b15dd.zip |
Omit the default limit for float columns (#28041)
Diffstat (limited to 'activerecord/test/cases/adapters/mysql2')
-rw-r--r-- | activerecord/test/cases/adapters/mysql2/unsigned_type_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/adapters/mysql2/unsigned_type_test.rb b/activerecord/test/cases/adapters/mysql2/unsigned_type_test.rb index d0a09f6481..b01f5d7f5a 100644 --- a/activerecord/test/cases/adapters/mysql2/unsigned_type_test.rb +++ b/activerecord/test/cases/adapters/mysql2/unsigned_type_test.rb @@ -62,7 +62,7 @@ class Mysql2UnsignedTypeTest < ActiveRecord::Mysql2TestCase schema = dump_table_schema "unsigned_types" assert_match %r{t\.integer\s+"unsigned_integer",\s+unsigned: true$}, schema assert_match %r{t\.bigint\s+"unsigned_bigint",\s+unsigned: true$}, schema - assert_match %r{t\.float\s+"unsigned_float",\s+limit: 24,\s+unsigned: true$}, schema + assert_match %r{t\.float\s+"unsigned_float",\s+unsigned: true$}, schema assert_match %r{t\.decimal\s+"unsigned_decimal",\s+precision: 10,\s+scale: 2,\s+unsigned: true$}, schema end end |