Skip to content

Commit 900e69c

Browse files
authored
Fix warning about symbol to string conversion being frozen in future (#1302)
1 parent df2630f commit 900e69c

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ def type_to_sql(type, limit: nil, precision: nil, scale: nil, **)
336336
else raise(ActiveRecordError, "No integer type has byte size #{limit}. Use a numeric with precision 0 instead.")
337337
end
338338
when "time" # https://learn.microsoft.com/en-us/sql/t-sql/data-types/time-transact-sql
339-
column_type_sql = type.to_s
339+
column_type_sql = type.to_s.dup
340340
if precision
341341
if (0..7) === precision
342342
column_type_sql << "(#{precision})"

0 commit comments

Comments
 (0)