Class: DatabaseConsistency::Checkers::NullConstraintChecker::Report

Inherits:
Report
  • Object
show all
Defined in:
lib/database_consistency/checkers/column_checkers/null_constraint_checker.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Attributes inherited from Report

#checker_name, #column_or_attribute_name, #error_message, #error_slug, #status, #table_or_model_name

Instance Method Summary collapse

Constructor Details

#initialize(association_name:, **args) ⇒ Report

Returns a new instance of Report.



10
11
12
13
# File 'lib/database_consistency/checkers/column_checkers/null_constraint_checker.rb', line 10

def initialize(association_name:, **args)
  super(**args)
  @association_name = association_name
end

Instance Attribute Details

#association_nameObject (readonly)

Returns the value of attribute association_name.



8
9
10
# File 'lib/database_consistency/checkers/column_checkers/null_constraint_checker.rb', line 8

def association_name
  @association_name
end

Instance Method Details

#attributesObject



15
16
17
# File 'lib/database_consistency/checkers/column_checkers/null_constraint_checker.rb', line 15

def attributes
  super.merge(association_name: association_name)
end