aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/adapters/mysql
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2015-10-15 04:43:32 +0900
committerRyuta Kamizono <kamipo@gmail.com>2015-10-15 05:38:43 +0900
commitf8438ae336f8f7d38c83a178d6ab6a9af635ee6c (patch)
treeb447a66946204d2f341b53607aaaa0b3977277d4 /activerecord/test/cases/adapters/mysql
parentde732e0015b356507b7c3554bcce2aa8818626c7 (diff)
downloadrails-f8438ae336f8f7d38c83a178d6ab6a9af635ee6c.tar.gz
rails-f8438ae336f8f7d38c83a178d6ab6a9af635ee6c.tar.bz2
rails-f8438ae336f8f7d38c83a178d6ab6a9af635ee6c.zip
Fix to correctly schema dump the `tinyblob`
Currently `tinyblob` is dumped to `t.binary "tiny_blob", limit: 255`. But `t.binary ... limit: 255` is generating SQL to `varchar(255)`. It is incorrect. This commit fixes this problem.
Diffstat (limited to 'activerecord/test/cases/adapters/mysql')
-rw-r--r--activerecord/test/cases/adapters/mysql/sql_types_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/adapters/mysql/sql_types_test.rb b/activerecord/test/cases/adapters/mysql/sql_types_test.rb
index 25b28de7f0..d18579f242 100644
--- a/activerecord/test/cases/adapters/mysql/sql_types_test.rb
+++ b/activerecord/test/cases/adapters/mysql/sql_types_test.rb
@@ -4,7 +4,7 @@ class MysqlSqlTypesTest < ActiveRecord::MysqlTestCase
def test_binary_types
assert_equal 'varbinary(64)', type_to_sql(:binary, 64)
assert_equal 'varbinary(4095)', type_to_sql(:binary, 4095)
- assert_equal 'blob(4096)', type_to_sql(:binary, 4096)
+ assert_equal 'blob', type_to_sql(:binary, 4096)
assert_equal 'blob', type_to_sql(:binary)
end