Skip to content

Commit 0e7ce0b

Browse files
committed
Merge pull request #327 from romuloceccon/filtered_indices_support
Add support for SQL Server's filtered indices
2 parents f117e2c + ad5431a commit 0e7ce0b

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)