Skip to content

Fix warning about symbol to string conversion being frozen in future #1302

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 19, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ def type_to_sql(type, limit: nil, precision: nil, scale: nil, **)
else raise(ActiveRecordError, "No integer type has byte size #{limit}. Use a numeric with precision 0 instead.")
end
when "time" # https://learn.microsoft.com/en-us/sql/t-sql/data-types/time-transact-sql
column_type_sql = type.to_s
column_type_sql = type.to_s.dup
if precision
if (0..7) === precision
column_type_sql << "(#{precision})"
Expand Down
Loading