Class: DatabaseConsistency::Checkers::NullConstraintChecker::Report
- Inherits:
-
Report
- Object
- Report
- DatabaseConsistency::Checkers::NullConstraintChecker::Report
- Defined in:
- lib/database_consistency/checkers/column_checkers/null_constraint_checker.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#association_name ⇒ Object
readonly
Returns the value of attribute association_name.
Attributes inherited from Report
#checker_name, #column_or_attribute_name, #error_message, #error_slug, #status, #table_or_model_name
Instance Method Summary collapse
- #attributes ⇒ Object
-
#initialize(association_name:, **args) ⇒ Report
constructor
A new instance of Report.
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_name ⇒ Object (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
#attributes ⇒ Object
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 |