From 818e50f697a65e1b25b0331c2207983866c33515 Mon Sep 17 00:00:00 2001 From: Andreas Sippl Date: Tue, 15 Oct 2024 15:39:15 +0200 Subject: [PATCH] Add check for `Date` to `#basic_attribute_type?` This should fix #1243. --- .../connection_adapters/sqlserver/database_statements.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/active_record/connection_adapters/sqlserver/database_statements.rb b/lib/active_record/connection_adapters/sqlserver/database_statements.rb index 2113057dc..f8342d625 100644 --- a/lib/active_record/connection_adapters/sqlserver/database_statements.rb +++ b/lib/active_record/connection_adapters/sqlserver/database_statements.rb @@ -359,6 +359,7 @@ def basic_attribute_type?(type) type.is_a?(String) || type.is_a?(Numeric) || type.is_a?(Time) || + type.is_a?(Date) || type.is_a?(TrueClass) || type.is_a?(FalseClass) || type.is_a?(NilClass)