Skip to content

Commit f7626b0

Browse files
author
Aidan Haran
committed
Support bit type
1 parent 9375ac4 commit f7626b0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/active_record/connection_adapters/sqlserver/schema_statements.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,7 @@ def column_definitions(table_name)
422422
else
423423
type = case ci[:type]
424424
when /smallint|int|bigint/ then ci[:_type]
425+
when /bit/ then 'smallint'
425426
else ci[:type]
426427
end
427428
value = default.match(/\A\((.*)\)\Z/m)[1]

0 commit comments

Comments
 (0)