-
-
Notifications
You must be signed in to change notification settings - Fork 47
Disable per database connection
Evgeniy Demin edited this page Jul 5, 2023
·
2 revisions
Since DatabaseConsistency version 1.7.12, given the database.yml
configuration as follows:
development:
primary:
<<: *default
database: db/development.sqlite3
secondary:
<<: *default
database: db/development_secondary.sqlite3
migrations_paths: db/migrate_secondary
It is possible to disable all checks at once for the entire connection.
Just add the following configuration to your .database_consistency.yml
# Configures database connections.
DatabaseConsistencyDatabases:
# Database connection name listed in database.yml.
secondary:
enabled: false # disables any check for +secondary+ database.
If the project helps you or your organization, I would be very grateful if you contribute or donate. Your support is an incredible motivation and the biggest reward for my hard work.
- Home
- Installation
- How to run?
- Configuration
- Auto correction
- Integrations
- Checkers
- ColumnPresenceChecker
- LengthConstraintChecker
- NullConstraintChecker
- UniqueIndexChecker
- ForeignKeyChecker
- MissingUniqueIndexChecker
- MissingIndexChecker
- PrimaryKeyTypeChecker
- ForeignKeyTypeChecker
- RedundantIndexChecker
- RedundantUniqueIndexChecker
- EnumTypeChecker
- ForeignKeyCascadeChecker
- EnumValueChecker
- CaseSensitiveUniqueValidationChecker
- ThreeStateBooleanChecker
- MissingAssociationClassChecker
- MissingTableChecker
- ImplicitOrderingChecker
- FAQ
- Development