Comments (4)
Hi @mockdeep, thank you for using the gem!
Could you please show by examples what do you mean as I'm not sure I understood the issue?
from database_consistency.
@djezzzl I'm hoping to set up database_consistency
to run on CI, but there are almost 100 violations currently. I would like to disable the checks that are failing for now and then we can gradually re-enable them. For example, here's a handful of messages:
fail Organization slugs associated model should have proper index in the database
fail Organization approver_lists associated model key (organization_id) with type (bigint) mismatches key (id) with type (integer)
fail Campaign user_id column should be required in the database
fail Group name column should be required in the database
fail User email column is required but there is possible null value insert
fail Doc fields_version column should be required in the database
fail Form user_id column should be required in the database
fail Form subject_id column should be required in the database
I would like to disable the checks associated with these failures, but I don't know the names. It would be nice if the output instead looked something like:
fail Organization slugs associated model should have proper index in the database (checker: MissingIndexChecker)
fail Organization approver_lists associated model key (organization_id) with type (bigint) mismatches key (id) with type (integer) (checker: ForeignKeyTypeChecker)
fail Campaign user_id column should be required in the database (checker: ColumnPresenceChecker)
fail Group name column should be required in the database (checker: ColumnPresenceChecker)
fail User email column is required but there is possible null value insert (checker: ColumnPresenceChecker)
fail Doc fields_version column should be required in the database (checker: ColumnPresenceChecker)
fail Form user_id column should be required in the database (checker: ColumnPresenceChecker)
fail Form subject_id column should be required in the database (checker: ColumnPresenceChecker)
That way I know which checker to disable. I know DEBUG
provides this, but it also adds a lot more output that makes it hard to find on a larger schema.
from database_consistency.
I see. I think we can change that π
from database_consistency.
Hey π ,
I've just released 1.1.2
. Could you please try it out and say if that helps you? Feel free to reopen the issue if necessary.
from database_consistency.
Related Issues (20)
- Excluding Database Connections to Non Primary Databases Including sqlserver HOT 2
- Ensure that generated todo files are created with consistent ordering HOT 6
- MissingIndexChecker violation on polymorphic association HOT 3
- ForeignKeyCascadeChecker default mapping HOT 3
- "undefined method `null' for nil:NilClass" in column_presence_checker.rb:54 HOT 7
- UniqueIndexChecker and postgresql partial indexes HOT 1
- Extendable database_consistency HOT 5
- Checker for implicit_order_column for table with uuid as primary key HOT 8
- False-positive when index columns are defined as a string and not array HOT 4
- ActiveRecord 7.0.5 internal error HOT 3
- MissingAssociationClassChecker fails with `undefined method klass for nil:NilClass` HOT 4
- undefined method `split' for nil:NilClass HOT 2
- ColumnPresenceChecker is incompatible with Rails' new default `belongs_to` validation behavior HOT 5
- Error when running ForeignKeyCascadeChecker HOT 1
- Add a file extension to debug output HOT 3
- Improve Documentation to describe how to work with indexes
- Error in NullConstraintChecker and other checkers
- Database_Ρonsistency Gem Does Not Detect Some Validations HOT 2
- `MissingUniqueIndexChecker` autocorrect is wrong when column is a function
- Error on on length check
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from database_consistency.