Class: DatabaseConsistency::Checkers::ColumnPresenceChecker

Inherits:
ValidatorsFractionChecker show all
Defined in:
lib/database_consistency/checkers/validators_fraction_checkers/column_presence_checker.rb

Overview

This class checks if presence validator has non-null constraint in the database

Constant Summary collapse

WEAK_OPTIONS =
%i[allow_nil allow_blank if unless on].freeze
Report =
ReportBuilder.define(
  DatabaseConsistency::Report,
  :table_name,
  :column_name
)

Instance Attribute Summary

Attributes inherited from ValidatorsFractionChecker

#attribute, #model, #validators

Method Summary

Methods inherited from ValidatorsFractionChecker

#column_or_attribute_name, #initialize, #table_or_model_name

Methods inherited from BaseChecker

checker_name, enabled?, #enabled?, #report, #report_if_enabled?

Constructor Details

This class inherits a constructor from DatabaseConsistency::Checkers::ValidatorsFractionChecker