Skip to content

Conversation

@OdenTakashi
Copy link
Contributor

Problem:

The ignore_multi_database_name option can be set via configuration file, but there was no integration test to ensure it works correctly in a multi-database environment.

Solution:

Add an integration test in annotate_models_in_multi_db_spec.rb that:

  • Creates a config file with ignore_multi_database_name: true
  • Verifies that database names are not included in annotations for both primary and secondary database models

OdenTakashi and others added 2 commits December 20, 2025 22:15
## Problem:
The ignore_multi_database_name option can be set via configuration file,
but there was no integration test to ensure it works correctly in a
multi-database environment.

## Solution:
Add an integration test in annotate_models_in_multi_db_spec.rb that:
- Creates a config file with ignore_multi_database_name: true
- Verifies that database names are not included in annotations
  for both primary and secondary database models
Copy link
Owner

@drwl drwl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for increasing test coverage!

@drwl drwl merged commit 84b3d28 into drwl:main Jan 2, 2026
22 checks passed
@OdenTakashi OdenTakashi deleted the test/add-integration-test-for-ignore-multi-database-name branch January 4, 2026 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants