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 3777248 commit ed474fbCopy full SHA for ed474fb
lib/active_record/connection_adapters/sqlserver/schema_statements.rb
@@ -39,11 +39,11 @@ def indexes(table_name)
39
data.reduce([]) do |indexes, index|
40
index = index.with_indifferent_access
41
42
- if index[:index_description] =~ /primary key/
+ if index[:index_description].match?(/primary key/)
43
indexes
44
else
45
name = index[:index_name]
46
- unique = index[:index_description] =~ /unique/
+ unique = index[:index_description].match?(/unique/)
47
where = select_value("SELECT [filter_definition] FROM sys.indexes WHERE name = #{quote(name)}", "SCHEMA")
48
orders = {}
49
columns = []
0 commit comments