Class: RaceGuard::IndexIntegrity::IndexDefinition

Inherits:
Struct
  • Object
show all
Defined in:
lib/race_guard/index_integrity/schema_analyzer.rb

Overview

Static scan for unique indexes in schema.rb or from an AR connection (Epic 5.2).

require "race_guard/index_integrity/schema_analyzer"

Instance Attribute Summary collapse

Instance Attribute Details

#columnsObject

Returns the value of attribute columns

Returns:

  • (Object)

    the current value of columns



11
12
13
# File 'lib/race_guard/index_integrity/schema_analyzer.rb', line 11

def columns
  @columns
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



11
12
13
# File 'lib/race_guard/index_integrity/schema_analyzer.rb', line 11

def name
  @name
end

#tableObject

Returns the value of attribute table

Returns:

  • (Object)

    the current value of table



11
12
13
# File 'lib/race_guard/index_integrity/schema_analyzer.rb', line 11

def table
  @table
end

#uniqueObject

Returns the value of attribute unique

Returns:

  • (Object)

    the current value of unique



11
12
13
# File 'lib/race_guard/index_integrity/schema_analyzer.rb', line 11

def unique
  @unique
end