Module: DatabaseConsistency
- Defined in:
- lib/database_consistency.rb,
lib/database_consistency/helper.rb,
lib/database_consistency/version.rb,
lib/database_consistency/rescue_error.rb,
lib/database_consistency/configuration.rb,
lib/database_consistency/writers/base_writer.rb,
lib/database_consistency/checkers/base_checker.rb,
lib/database_consistency/writers/simple_writer.rb,
lib/database_consistency/checkers/column_checker.rb,
lib/database_consistency/processors/base_processor.rb,
lib/database_consistency/checkers/validator_checker.rb,
lib/database_consistency/checkers/association_checker.rb,
lib/database_consistency/processors/columns_processor.rb,
lib/database_consistency/checkers/missing_index_checker.rb,
lib/database_consistency/processors/validators_processor.rb,
lib/database_consistency/checkers/column_presence_checker.rb,
lib/database_consistency/checkers/null_constraint_checker.rb,
lib/database_consistency/processors/associations_processor.rb,
lib/database_consistency/checkers/belongs_to_presence_checker.rb,
lib/database_consistency/checkers/missing_unique_index_checker.rb
Overview
The root module
Defined Under Namespace
Modules: Checkers, Helper, Processors, Writers Classes: Configuration, RescueError
Constant Summary collapse
- VERSION =
'0.6.9'
Class Method Summary collapse
Class Method Details
.run ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/database_consistency.rb', line 32 def run configuration = Configuration.new reports = Processors.reports(configuration) Writers::SimpleWriter.write( reports, config: configuration ) reports.any? { |report| report.status == :fail } ? 1 : 0 end |