Class: RaceGuard::IndexIntegrity::UniquenessValidation

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

Overview

Static scan for ActiveRecord-style validates macros with uniqueness (Epic 5.1).

Load explicitly for non-Rails use; in Rails apps race_guard:index_integrity loads this.

require "race_guard/index_integrity/model_scanner"

Instance Attribute Summary collapse

Instance Attribute Details

#fieldsObject

Returns the value of attribute fields

Returns:

  • (Object)

    the current value of fields



12
13
14
# File 'lib/race_guard/index_integrity/model_scanner.rb', line 12

def fields
  @fields
end

#filenameObject

Returns the value of attribute filename

Returns:

  • (Object)

    the current value of filename



12
13
14
# File 'lib/race_guard/index_integrity/model_scanner.rb', line 12

def filename
  @filename
end

#scopeObject

Returns the value of attribute scope

Returns:

  • (Object)

    the current value of scope



12
13
14
# File 'lib/race_guard/index_integrity/model_scanner.rb', line 12

def scope
  @scope
end