The tool to avoid various issues due to inconsistencies and inefficiencies between a database schema and application models.
The tool to avoid various issues due to inconsistencies and inefficiencies between a database schema and application models.
The main goal of the project is to help you avoid various issues due to inconsistencies and inefficiencies between a database schema and application models.
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.
The project is greatly supported by Pennylane! Huge appreciation to the organization, and please join them if you find the gem valuable for you!
For detailed information, please read the wiki.
Currently, the tool can:
BelongsTo associationsHasOne and HasMany associationscase_sensitive: false option for unique validations for case-insensitive typesfind_by calls that are missing a database indexBesides that, the tool provides:
We support the following databases: SQLite3, PostgreSQL and MySQL.
We support ActiveRecord only at the moment.
Please upvote the request for other frameworks if you're interested.
Follow me and stay tuned for the updates:
Add this line to your application's Gemfile:
gem 'database_consistency', group: :development, require: falseAnd then execute:
$ bundle install…You're an individual who wants to support the project with a monthly donation. Your logo will be available on the Github page. [Become a backer]
You're an organization that wants to support the project with a monthly donation. Your logo will be available on the Github page. [Become a sponsor]
Bug reports and pull requests are welcome on GitHub. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
Everyone interacting in the DatabaseConsistency project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.
DatabaseConsistency's changelog is available here.
Copyright (c) Evgeniy Demin. See LICENSE.txt for further details.
No open issues yet, or sync has not completed.