We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38061fd commit 711339eCopy full SHA for 711339e
lib/active_record/connection_adapters/sqlserver/schema_statements.rb
@@ -44,7 +44,7 @@ def indexes(table_name)
44
else
45
name = index[:index_name]
46
unique = index[:index_description] =~ /unique/
47
- where = select_value("SELECT [filter_definition] FROM sys.indexes WHERE name = #{quote(name)}")
+ where = select_value("SELECT [filter_definition] FROM sys.indexes WHERE name = #{quote(name)}", "SCHEMA")
48
orders = {}
49
columns = []
50
0 commit comments