Skip to content
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