aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2016-12-11 21:28:11 +0900
committerRyuta Kamizono <kamipo@gmail.com>2016-12-11 21:28:11 +0900
commit61cd7bd65314fe53e42593875a7425385c596740 (patch)
treea5efa63506504162590aa6bcd80d7d59e4c916f3 /activerecord/test
parent701fc768ae34a8824f0c2611214711f1023b057c (diff)
downloadrails-61cd7bd65314fe53e42593875a7425385c596740.tar.gz
rails-61cd7bd65314fe53e42593875a7425385c596740.tar.bz2
rails-61cd7bd65314fe53e42593875a7425385c596740.zip
Simplify the regex for `unsigned?` method
It is enough to distinguish only the trailing `unsigned` and `unsigned zerofill`.
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/adapters/mysql2/unsigned_type_test.rb2
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 268800d538..a0823be143 100644
--- a/activerecord/test/cases/adapters/mysql2/unsigned_type_test.rb
+++ b/activerecord/test/cases/adapters/mysql2/unsigned_type_test.rb
@@ -15,6 +15,7 @@ class Mysql2UnsignedTypeTest < ActiveRecord::Mysql2TestCase
t.bigint :unsigned_bigint, unsigned: true
t.float :unsigned_float, unsigned: true
t.decimal :unsigned_decimal, unsigned: true, precision: 10, scale: 2
+ t.column :unsigned_zerofill, "int unsigned zerofill"
end
end
@@ -48,7 +49,6 @@ 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|