gregnavis / active_record_doctor

Identify database issues before they hit production.
MIT License
1.76k stars 55 forks source link

Enhance `UnindexedForeignKeys` to check for non-standard named foreign keys #124

Closed fatkodima closed 1 year ago

fatkodima commented 1 year ago

UnindexedForeignKeys currently checks only for columns named like _id. In most cases, these really are (or acting like without real db FOREIGN KEY constraint) foreign key columns. But this detector misses real unindexed foreign keys with non-standard names.

gregnavis commented 1 year ago

Looks good, but needs a rebase.

fatkodima commented 1 year ago

Rebased.