We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a451b28 commit efbead1Copy full SHA for efbead1
lib/active_record/connection_adapters/sqlserver/schema_statements.rb
@@ -256,7 +256,7 @@ def column_definitions(table_name)
256
nil
257
else
258
match_data = ci[:default_value].match(/\A\(+N?'?(.*?)'?\)+\Z/m)
259
- match_data ? match_data[1] : nil
+ match_data ? match_data[1].gsub("''", "'") : nil
260
end
261
ci[:null] = ci[:is_nullable].to_i == 1
262
ci.delete(:is_nullable)
0 commit comments