Skip to content

Commit 6f99ea0

Browse files
committed
Test
1 parent c137deb commit 6f99ea0

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

test/cases/schema_dumper_test_sqlserver.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ class SchemaDumperTestSQLServer < ActiveRecord::TestCase
105105
_(columns["nchar_col"].sql_type).must_equal "nchar(1)"
106106
_(columns["ntext_col"].sql_type).must_equal "ntext"
107107
_(columns["binary_basic_col"].sql_type).must_equal "binary(1)"
108+
_(columns["binary_basic_16_col"].sql_type).must_equal "binary(16)"
108109
_(columns["varbinary_col"].sql_type).must_equal "varbinary(8000)"
109110
_(columns["uuid_col"].sql_type).must_equal "uniqueidentifier"
110111
_(columns["sstimestamp_col"].sql_type).must_equal "timestamp"
@@ -122,6 +123,7 @@ class SchemaDumperTestSQLServer < ActiveRecord::TestCase
122123
assert_line :nchar_col, type: "nchar", limit: 1
123124
assert_line :ntext_col, type: "ntext"
124125
assert_line :binary_basic_col, type: "binary_basic", limit: 1
126+
assert_line :binary_basic_16_col, type: "binary_basic", limit: 16
125127
assert_line :varbinary_col, type: "varbinary"
126128
assert_line :uuid_col, type: "uuid"
127129
assert_line :sstimestamp_col, type: "ss_timestamp", null: false

test/schema/sqlserver_specific_schema.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
t.nchar :nchar_col
3434
t.ntext :ntext_col
3535
t.binary_basic :binary_basic_col
36+
t.binary_basic :binary_basic_16_col, limit: 16
3637
t.varbinary :varbinary_col
3738
t.uuid :uuid_col
3839
t.ss_timestamp :sstimestamp_col

0 commit comments

Comments
 (0)