Error in NullConstraintChecker and other checkers
Closed this issue · 2 comments
pmackay commented
I run the tool with a config file that was generated from it, and get this:
<===begin===>
Metadata:
model: Identifier
column: id
checker: DatabaseConsistency::Checkers::NullConstraintChecker
Stack trace:
/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/configuration.rb:58:in `block in find': �[1mundefined method `include?' for nil:NilClass (�[1;4mNoMethodError�[m�[1m)�[m
�[1m configuration.find { |(k, _)| k.include?('*') && key.match?(generate_regexp(k)) }&.last�[m
�[1m ^^^^^^^^^�[m
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/configuration.rb:58:in `each'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/configuration.rb:58:in `find'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/configuration.rb:58:in `find'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/configuration.rb:40:in `block in enabled?'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/configuration.rb:39:in `each'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/configuration.rb:39:in `enabled?'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/checkers/base_checker.rb:41:in `enabled?'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/checkers/base_checker.rb:34:in `report_if_enabled?'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/columns_processor.rb:29:in `block (6 levels) in check'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/debug_context.rb:20:in `with'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/debug_context.rb:8:in `with'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/columns_processor.rb:27:in `block (5 levels) in check'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/columns_processor.rb:26:in `each'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/columns_processor.rb:26:in `flat_map'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/columns_processor.rb:26:in `block (4 levels) in check'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/debug_context.rb:20:in `with'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/debug_context.rb:8:in `with'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/columns_processor.rb:25:in `block (3 levels) in check'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/columns_processor.rb:24:in `each'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/columns_processor.rb:24:in `flat_map'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/columns_processor.rb:24:in `block (2 levels) in check'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/debug_context.rb:20:in `with'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/debug_context.rb:8:in `with'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/columns_processor.rb:20:in `block in check'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/columns_processor.rb:19:in `each'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/columns_processor.rb:19:in `flat_map'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/columns_processor.rb:19:in `check'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/base_processor.rb:31:in `reports'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/base_processor.rb:16:in `block in reports'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/base_processor.rb:15:in `each'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/base_processor.rb:15:in `flat_map'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/base_processor.rb:15:in `reports'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency.rb:112:in `run'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/bin/database_consistency:78:in `<top (required)>'
from /ruby/3.2.2/bin/database_consistency:25:in `load'
from /ruby/3.2.2/bin/database_consistency:25:in `<top (required)>'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/cli/exec.rb:58:in `load'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/cli/exec.rb:58:in `kernel_load'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/cli/exec.rb:23:in `run'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/cli.rb:492:in `exec'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/cli.rb:34:in `dispatch'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/cli.rb:28:in `start'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/exe/bundle:45:in `block in <top (required)>'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/exe/bundle:33:in `<top (required)>'
from /ruby/3.2.2/bin/bundle:25:in `load'
from /ruby/3.2.2/bin/bundle:25:in `<main>'
<===end===>
<===begin===>
Metadata:
model: Identifier
attribute: owner
checker: DatabaseConsistency::Checkers::MissingUniqueIndexChecker
Stack trace:
/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/configuration.rb:58:in `block in find': �[1mundefined method `include?' for nil:NilClass (�[1;4mNoMethodError�[m�[1m)�[m
�[1m configuration.find { |(k, _)| k.include?('*') && key.match?(generate_regexp(k)) }&.last�[m
�[1m ^^^^^^^^^�[m
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/configuration.rb:58:in `each'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/configuration.rb:58:in `find'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/configuration.rb:58:in `find'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/configuration.rb:40:in `block in enabled?'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/configuration.rb:39:in `each'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/configuration.rb:39:in `enabled?'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/checkers/base_checker.rb:41:in `enabled?'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/checkers/base_checker.rb:34:in `report_if_enabled?'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/validators_processor.rb:29:in `block (7 levels) in check'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/debug_context.rb:20:in `with'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/debug_context.rb:8:in `with'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/validators_processor.rb:27:in `block (6 levels) in check'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/validators_processor.rb:26:in `each'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/validators_processor.rb:26:in `flat_map'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/validators_processor.rb:26:in `block (5 levels) in check'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/debug_context.rb:20:in `with'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/debug_context.rb:8:in `with'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/validators_processor.rb:25:in `block (4 levels) in check'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/validators_processor.rb:24:in `each'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/validators_processor.rb:24:in `flat_map'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/validators_processor.rb:24:in `block (3 levels) in check'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/validators_processor.rb:21:in `each'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/validators_processor.rb:21:in `flat_map'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/validators_processor.rb:21:in `block (2 levels) in check'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/debug_context.rb:20:in `with'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/debug_context.rb:8:in `with'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/validators_processor.rb:17:in `block in check'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/validators_processor.rb:16:in `each'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/validators_processor.rb:16:in `flat_map'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/validators_processor.rb:16:in `check'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/base_processor.rb:31:in `reports'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/base_processor.rb:16:in `block in reports'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/base_processor.rb:15:in `each'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/base_processor.rb:15:in `flat_map'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/base_processor.rb:15:in `reports'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency.rb:112:in `run'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/bin/database_consistency:78:in `<top (required)>'
from /ruby/3.2.2/bin/database_consistency:25:in `load'
from /ruby/3.2.2/bin/database_consistency:25:in `<top (required)>'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/cli/exec.rb:58:in `load'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/cli/exec.rb:58:in `kernel_load'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/cli/exec.rb:23:in `run'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/cli.rb:492:in `exec'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/cli.rb:34:in `dispatch'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/cli.rb:28:in `start'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/exe/bundle:45:in `block in <top (required)>'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/exe/bundle:33:in `<top (required)>'
from /ruby/3.2.2/bin/bundle:25:in `load'
from /ruby/3.2.2/bin/bundle:25:in `<main>'
<===end===>
<===begin===>
Metadata:
model: Identifier
association: versions
checker: DatabaseConsistency::Checkers::MissingIndexChecker
Stack trace:
/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/configuration.rb:58:in `block in find': �[1mundefined method `include?' for nil:NilClass (�[1;4mNoMethodError�[m�[1m)�[m
�[1m configuration.find { |(k, _)| k.include?('*') && key.match?(generate_regexp(k)) }&.last�[m
�[1m ^^^^^^^^^�[m
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/configuration.rb:58:in `each'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/configuration.rb:58:in `find'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/configuration.rb:58:in `find'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/configuration.rb:40:in `block in enabled?'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/configuration.rb:39:in `each'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/configuration.rb:39:in `enabled?'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/checkers/base_checker.rb:41:in `enabled?'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/checkers/base_checker.rb:34:in `report_if_enabled?'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/associations_processor.rb:28:in `block (6 levels) in check'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/debug_context.rb:20:in `with'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/debug_context.rb:8:in `with'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/associations_processor.rb:26:in `block (5 levels) in check'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/associations_processor.rb:25:in `each'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/associations_processor.rb:25:in `flat_map'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/associations_processor.rb:25:in `block (4 levels) in check'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/debug_context.rb:20:in `with'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/debug_context.rb:8:in `with'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/associations_processor.rb:24:in `block (3 levels) in check'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/associations_processor.rb:23:in `each'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/associations_processor.rb:23:in `flat_map'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/associations_processor.rb:23:in `block (2 levels) in check'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/debug_context.rb:20:in `with'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/debug_context.rb:8:in `with'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/associations_processor.rb:19:in `block in check'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/associations_processor.rb:18:in `each'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/associations_processor.rb:18:in `flat_map'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/associations_processor.rb:18:in `check'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/base_processor.rb:31:in `reports'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/base_processor.rb:16:in `block in reports'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/base_processor.rb:15:in `each'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/base_processor.rb:15:in `flat_map'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/base_processor.rb:15:in `reports'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency.rb:112:in `run'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/bin/database_consistency:78:in `<top (required)>'
from /ruby/3.2.2/bin/database_consistency:25:in `load'
from /ruby/3.2.2/bin/database_consistency:25:in `<top (required)>'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/cli/exec.rb:58:in `load'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/cli/exec.rb:58:in `kernel_load'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/cli/exec.rb:23:in `run'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/cli.rb:492:in `exec'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/cli.rb:34:in `dispatch'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/cli.rb:28:in `start'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/exe/bundle:45:in `block in <top (required)>'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/exe/bundle:33:in `<top (required)>'
from /ruby/3.2.2/bin/bundle:25:in `load'
from /ruby/3.2.2/bin/bundle:25:in `<main>'
<===end===>
<===begin===>
Metadata:
model: Identifier
attribute: owner
checker: DatabaseConsistency::Checkers::ColumnPresenceChecker
Stack trace:
/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/configuration.rb:58:in `block in find': �[1mundefined method `include?' for nil:NilClass (�[1;4mNoMethodError�[m�[1m)�[m
�[1m configuration.find { |(k, _)| k.include?('*') && key.match?(generate_regexp(k)) }&.last�[m
�[1m ^^^^^^^^^�[m
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/configuration.rb:58:in `each'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/configuration.rb:58:in `find'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/configuration.rb:58:in `find'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/configuration.rb:40:in `block in enabled?'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/configuration.rb:39:in `each'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/configuration.rb:39:in `enabled?'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/checkers/base_checker.rb:41:in `enabled?'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/checkers/base_checker.rb:34:in `report_if_enabled?'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/validators_fractions_processor.rb:27:in `block (6 levels) in check'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/debug_context.rb:20:in `with'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/debug_context.rb:8:in `with'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/validators_fractions_processor.rb:25:in `block (5 levels) in check'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/validators_fractions_processor.rb:24:in `each'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/validators_fractions_processor.rb:24:in `flat_map'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/validators_fractions_processor.rb:24:in `block (4 levels) in check'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/debug_context.rb:20:in `with'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/debug_context.rb:8:in `with'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/validators_fractions_processor.rb:21:in `block (3 levels) in check'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/validators_fractions_processor.rb:20:in `each'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/validators_fractions_processor.rb:20:in `flat_map'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/validators_fractions_processor.rb:20:in `block (2 levels) in check'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/debug_context.rb:20:in `with'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/debug_context.rb:8:in `with'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/validators_fractions_processor.rb:16:in `block in check'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/validators_fractions_processor.rb:15:in `each'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/validators_fractions_processor.rb:15:in `flat_map'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/validators_fractions_processor.rb:15:in `check'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/base_processor.rb:31:in `reports'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/base_processor.rb:16:in `block in reports'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/base_processor.rb:15:in `each'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/base_processor.rb:15:in `flat_map'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/base_processor.rb:15:in `reports'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency.rb:112:in `run'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/bin/database_consistency:78:in `<top (required)>'
from /ruby/3.2.2/bin/database_consistency:25:in `load'
from /ruby/3.2.2/bin/database_consistency:25:in `<top (required)>'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/cli/exec.rb:58:in `load'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/cli/exec.rb:58:in `kernel_load'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/cli/exec.rb:23:in `run'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/cli.rb:492:in `exec'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/cli.rb:34:in `dispatch'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/cli.rb:28:in `start'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/exe/bundle:45:in `block in <top (required)>'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/exe/bundle:33:in `<top (required)>'
from /ruby/3.2.2/bin/bundle:25:in `load'
from /ruby/3.2.2/bin/bundle:25:in `<main>'
<===end===>
<===begin===>
Metadata:
model: Identifier
index: index_identifiers_on_organization_id
checker: DatabaseConsistency::Checkers::UniqueIndexChecker
Stack trace:
/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/configuration.rb:58:in `block in find': �[1mundefined method `include?' for nil:NilClass (�[1;4mNoMethodError�[m�[1m)�[m
�[1m configuration.find { |(k, _)| k.include?('*') && key.match?(generate_regexp(k)) }&.last�[m
�[1m ^^^^^^^^^�[m
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/configuration.rb:58:in `each'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/configuration.rb:58:in `find'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/configuration.rb:58:in `find'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/configuration.rb:40:in `block in enabled?'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/configuration.rb:39:in `each'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/configuration.rb:39:in `enabled?'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/checkers/base_checker.rb:41:in `enabled?'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/checkers/base_checker.rb:34:in `report_if_enabled?'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/indexes_processor.rb:28:in `block (6 levels) in check'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/debug_context.rb:20:in `with'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/debug_context.rb:8:in `with'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/indexes_processor.rb:26:in `block (5 levels) in check'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/indexes_processor.rb:25:in `each'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/indexes_processor.rb:25:in `flat_map'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/indexes_processor.rb:25:in `block (4 levels) in check'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/debug_context.rb:20:in `with'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/debug_context.rb:8:in `with'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/indexes_processor.rb:24:in `block (3 levels) in check'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/indexes_processor.rb:23:in `each'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/indexes_processor.rb:23:in `flat_map'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/indexes_processor.rb:23:in `block (2 levels) in check'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/debug_context.rb:20:in `with'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/debug_context.rb:8:in `with'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/indexes_processor.rb:17:in `block in check'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/indexes_processor.rb:16:in `each'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/indexes_processor.rb:16:in `flat_map'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/indexes_processor.rb:16:in `check'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/base_processor.rb:31:in `reports'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/base_processor.rb:16:in `block in reports'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/base_processor.rb:15:in `each'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/base_processor.rb:15:in `flat_map'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/base_processor.rb:15:in `reports'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency.rb:112:in `run'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/bin/database_consistency:78:in `<top (required)>'
from /ruby/3.2.2/bin/database_consistency:25:in `load'
from /ruby/3.2.2/bin/database_consistency:25:in `<top (required)>'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/cli/exec.rb:58:in `load'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/cli/exec.rb:58:in `kernel_load'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/cli/exec.rb:23:in `run'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/cli.rb:492:in `exec'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/cli.rb:34:in `dispatch'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/cli.rb:28:in `start'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/exe/bundle:45:in `block in <top (required)>'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/exe/bundle:33:in `<top (required)>'
from /ruby/3.2.2/bin/bundle:25:in `load'
from /ruby/3.2.2/bin/bundle:25:in `<main>'
<===end===>
<===begin===>
Metadata:
model: Identifier
enum: identifier_type
checker: DatabaseConsistency::Checkers::EnumTypeChecker
Stack trace:
/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/configuration.rb:58:in `block in find': �[1mundefined method `include?' for nil:NilClass (�[1;4mNoMethodError�[m�[1m)�[m
�[1m configuration.find { |(k, _)| k.include?('*') && key.match?(generate_regexp(k)) }&.last�[m
�[1m ^^^^^^^^^�[m
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/configuration.rb:58:in `each'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/configuration.rb:58:in `find'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/configuration.rb:58:in `find'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/configuration.rb:40:in `block in enabled?'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/configuration.rb:39:in `each'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/configuration.rb:39:in `enabled?'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/checkers/base_checker.rb:41:in `enabled?'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/checkers/base_checker.rb:34:in `report_if_enabled?'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/enums_processor.rb:24:in `block (6 levels) in check'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/debug_context.rb:20:in `with'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/debug_context.rb:8:in `with'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/enums_processor.rb:22:in `block (5 levels) in check'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/enums_processor.rb:21:in `each'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/enums_processor.rb:21:in `flat_map'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/enums_processor.rb:21:in `block (4 levels) in check'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/debug_context.rb:20:in `with'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/debug_context.rb:8:in `with'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/enums_processor.rb:20:in `block (3 levels) in check'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/enums_processor.rb:19:in `each'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/enums_processor.rb:19:in `flat_map'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/enums_processor.rb:19:in `block (2 levels) in check'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/debug_context.rb:20:in `with'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/debug_context.rb:8:in `with'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/enums_processor.rb:15:in `block in check'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/enums_processor.rb:14:in `each'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/enums_processor.rb:14:in `flat_map'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/enums_processor.rb:14:in `check'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/base_processor.rb:31:in `reports'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/base_processor.rb:16:in `block in reports'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/base_processor.rb:15:in `each'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/base_processor.rb:15:in `flat_map'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/base_processor.rb:15:in `reports'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency.rb:112:in `run'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/bin/database_consistency:78:in `<top (required)>'
from /ruby/3.2.2/bin/database_consistency:25:in `load'
from /ruby/3.2.2/bin/database_consistency:25:in `<top (required)>'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/cli/exec.rb:58:in `load'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/cli/exec.rb:58:in `kernel_load'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/cli/exec.rb:23:in `run'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/cli.rb:492:in `exec'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/cli.rb:34:in `dispatch'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/cli.rb:28:in `start'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/exe/bundle:45:in `block in <top (required)>'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/exe/bundle:33:in `<top (required)>'
from /ruby/3.2.2/bin/bundle:25:in `load'
from /ruby/3.2.2/bin/bundle:25:in `<main>'
<===end===>
<===begin===>
Metadata:
model: Webhook::Subscription
checker: DatabaseConsistency::Checkers::MissingTableChecker
Stack trace:
/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/configuration.rb:58:in `block in find': �[1mundefined method `include?' for nil:NilClass (�[1;4mNoMethodError�[m�[1m)�[m
�[1m configuration.find { |(k, _)| k.include?('*') && key.match?(generate_regexp(k)) }&.last�[m
�[1m ^^^^^^^^^�[m
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/configuration.rb:58:in `each'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/configuration.rb:58:in `find'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/configuration.rb:58:in `find'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/configuration.rb:40:in `block in enabled?'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/configuration.rb:39:in `each'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/configuration.rb:39:in `enabled?'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/checkers/base_checker.rb:41:in `enabled?'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/checkers/base_checker.rb:34:in `report_if_enabled?'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/models_processor.rb:22:in `block (4 levels) in check'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/debug_context.rb:20:in `with'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/debug_context.rb:8:in `with'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/models_processor.rb:20:in `block (3 levels) in check'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/models_processor.rb:19:in `each'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/models_processor.rb:19:in `flat_map'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/models_processor.rb:19:in `block (2 levels) in check'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/debug_context.rb:20:in `with'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/debug_context.rb:8:in `with'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/models_processor.rb:15:in `block in check'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/models_processor.rb:14:in `each'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/models_processor.rb:14:in `flat_map'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/models_processor.rb:14:in `check'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/base_processor.rb:31:in `reports'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/base_processor.rb:16:in `block in reports'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/base_processor.rb:15:in `each'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/base_processor.rb:15:in `flat_map'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency/processors/base_processor.rb:15:in `reports'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/lib/database_consistency.rb:112:in `run'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/database_consistency-1.7.22/bin/database_consistency:78:in `<top (required)>'
from /ruby/3.2.2/bin/database_consistency:25:in `load'
from /ruby/3.2.2/bin/database_consistency:25:in `<top (required)>'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/cli/exec.rb:58:in `load'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/cli/exec.rb:58:in `kernel_load'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/cli/exec.rb:23:in `run'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/cli.rb:492:in `exec'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/cli.rb:34:in `dispatch'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/cli.rb:28:in `start'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/exe/bundle:45:in `block in <top (required)>'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
from /ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.12/exe/bundle:33:in `<top (required)>'
from /ruby/3.2.2/bin/bundle:25:in `load'
from /ruby/3.2.2/bin/bundle:25:in `<main>'
<===end===>
adamk9k commented
Facing this same issue, the problem is that if I generate todos with the -g flag, for the missing table inconsistency the yaml looks like
ModelName:
! '':
MissingTableChecker:
enabled: false
This when fed into the checker again results in an undefined include? for nil class
error at
configuration.find { |(k, _)| k.include?('*') && key.match?(generate_regexp(k)) }&.last
database_consistency/configuration.rb:58:in
each'`
For now, I've disabled the MissingTableChecker
with
DatabaseConsistencyCheckers:
All:
enabled: true
MissingTableChecker:
enabled: false
For me it was reporting a false negative anyways, the table does exist.