Skip to content

Commit ee3eb15

Browse files
committed
Binary basic is limitable
1 parent 6f99ea0 commit ee3eb15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/active_record/connection_adapters/sqlserver/schema_statements.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ def check_constraints(table_name)
291291
end
292292

293293
def type_to_sql(type, limit: nil, precision: nil, scale: nil, **)
294-
type_limitable = %w(string integer float char nchar varchar nvarchar).include?(type.to_s)
294+
type_limitable = %w(string integer float char nchar varchar nvarchar binary_basic).include?(type.to_s)
295295
limit = nil unless type_limitable
296296

297297
case type.to_s

0 commit comments

Comments
 (0)