diff --git a/lib/active_record/connection_adapters/sqlserver/schema_statements.rb b/lib/active_record/connection_adapters/sqlserver/schema_statements.rb index 21cc5902e..f3efc5fcb 100644 --- a/lib/active_record/connection_adapters/sqlserver/schema_statements.rb +++ b/lib/active_record/connection_adapters/sqlserver/schema_statements.rb @@ -86,7 +86,7 @@ def columns(table_name) def new_column(name, default, sql_type_metadata, null, default_function = nil, collation = nil, comment = nil, sqlserver_options = {}) SQLServerColumn.new( name, - default.nil? ? nil : default.to_s + default.nil? ? nil : default.to_s, sql_type_metadata, null, default_function,