diff --git a/test/cases/schema_dumper_test_sqlserver.rb b/test/cases/schema_dumper_test_sqlserver.rb index 405f84c93..5a50d61a9 100644 --- a/test/cases/schema_dumper_test_sqlserver.rb +++ b/test/cases/schema_dumper_test_sqlserver.rb @@ -105,6 +105,7 @@ class SchemaDumperTestSQLServer < ActiveRecord::TestCase _(columns["nchar_col"].sql_type).must_equal "nchar(1)" _(columns["ntext_col"].sql_type).must_equal "ntext" _(columns["binary_basic_col"].sql_type).must_equal "binary(1)" + _(columns["binary_basic_16_col"].sql_type).must_equal "binary(16)" _(columns["varbinary_col"].sql_type).must_equal "varbinary(8000)" _(columns["uuid_col"].sql_type).must_equal "uniqueidentifier" _(columns["sstimestamp_col"].sql_type).must_equal "timestamp" @@ -122,6 +123,7 @@ class SchemaDumperTestSQLServer < ActiveRecord::TestCase assert_line :nchar_col, type: "nchar", limit: 1 assert_line :ntext_col, type: "ntext" assert_line :binary_basic_col, type: "binary_basic", limit: 1 + assert_line :binary_basic_16_col, type: "binary_basic", limit: 16 assert_line :varbinary_col, type: "varbinary" assert_line :uuid_col, type: "uuid" assert_line :sstimestamp_col, type: "ss_timestamp", null: false diff --git a/test/schema/sqlserver_specific_schema.rb b/test/schema/sqlserver_specific_schema.rb index 136b6c1a5..a5160f791 100644 --- a/test/schema/sqlserver_specific_schema.rb +++ b/test/schema/sqlserver_specific_schema.rb @@ -33,6 +33,7 @@ t.nchar :nchar_col t.ntext :ntext_col t.binary_basic :binary_basic_col + t.binary_basic :binary_basic_16_col, limit: 16 t.varbinary :varbinary_col t.uuid :uuid_col t.ss_timestamp :sstimestamp_col