Content
View differences
Updated by Alexander Coles over 1 year ago
**As** a developer
**I want to** know where there foreign keys may be have been missed for a mismatch between foreign keys and model given Model association dependent option
**so that** we avoid potential bugs (e.g. emoji reactions <mention class="mention" data-id="61708" data-type="work_package" data-text="#61708">#61708</mention> )
**Acceptance criteria**
* Add `active_record_doctor` `active_record_doctor` dependency to OpenProject core and configure important details.
**Technical notes**
* `bundle exec rake active_record_doctor:missing_foreign_keys` should work
* `bundle exec rake active_record_doctor:incorrect_dependent_option`
**Out of scope**
* Integrating with our CI - creating a GitHub workflow. This can come later if the tool provides useful information
**I want to** know where there
**so that** we avoid potential bugs (e.g. emoji reactions <mention class="mention" data-id="61708" data-type="work_package" data-text="#61708">#61708</mention> )
**Acceptance criteria**
* Add `active_record_doctor`
**Technical notes**
* `bundle exec rake active_record_doctor:missing_foreign_keys` should work
* `bundle exec rake active_record_doctor:incorrect_dependent_option`
**Out of scope**
* Integrating with our CI - creating a GitHub workflow. This can come later if the tool provides useful information