Skip to content

Commit ad5431a

Browse files
committed
support for partial/filtered indices on SQL Server 2008
1 parent f117e2c commit ad5431a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/active_record/connection_adapters/sqlserver_adapter.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,10 @@ def supports_index_sort_order?
252252
true
253253
end
254254

255+
def supports_partial_index?
256+
@database_year >= 2008
257+
end
258+
255259
def supports_explain?
256260
true
257261
end

0 commit comments

Comments
 (0)