aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/adapters/mysql2
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2016-03-07 06:25:54 +0900
committerRyuta Kamizono <kamipo@gmail.com>2016-03-11 14:44:36 +0900
commit37024ce479676bbb338d4083dbc31f34a1eca893 (patch)
treefce163d29f3bd85e871f45b8630c45e5cc2c9eb6 /activerecord/test/cases/adapters/mysql2
parenta101115d5b8011278891f30f69901f9583ea7685 (diff)
downloadrails-37024ce479676bbb338d4083dbc31f34a1eca893.tar.gz
rails-37024ce479676bbb338d4083dbc31f34a1eca893.tar.bz2
rails-37024ce479676bbb338d4083dbc31f34a1eca893.zip
Dump `bigint` instead of `integer` with `limit: 8` for schema dumper
Before: ```ruby create_table "big_numbers", force: :cascade do |t| t.integer "bigint_column", limit: 8 end ``` After: ```ruby create_table "big_numbers", force: :cascade do |t| t.bigint "bigint_column" end ```
Diffstat (limited to 'activerecord/test/cases/adapters/mysql2')
-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 c95a64cc16..0a9703263e 100644
--- a/activerecord/test/cases/adapters/mysql2/unsigned_type_test.rb
+++ b/activerecord/test/cases/adapters/mysql2/unsigned_type_test.rb
@@ -58,7 +58,7 @@ class Mysql2UnsignedTypeTest < ActiveRecord::Mysql2TestCase
test "schema dump includes unsigned option" do
schema = dump_table_schema "unsigned_types"
assert_match %r{t.integer\s+"unsigned_integer",\s+unsigned: true$}, schema
- assert_match %r{t.integer\s+"unsigned_bigint",\s+limit: 8,\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.decimal\s+"unsigned_decimal",\s+precision: 10,\s+scale: 2,\s+unsigned: true$}, schema
end