Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include table name in the message for extraneous_indexes #140

Merged

Conversation

fatkodima
Copy link
Contributor

I recently tested this gem on a project which has quite a few matviews in the database and a foreign wrapper for MySQL, but still is using schema.rb without dumped them there (don't ask why). And when extraneous_indexes reported extra indexes, it hasn't mentioned where these indexes are defined, so it was quite a challenge to find it through psql. This PR simplifies such debugging for future users.

gregnavis
gregnavis previously approved these changes Jun 13, 2023
@gregnavis gregnavis force-pushed the improve-message-for-extraneous_indexes branch from f4b7be5 to 4fdcc4b Compare July 20, 2023 14:37
Copy link
Owner

@gregnavis gregnavis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. I took the liberty to rebase it and make a slight edit to the message.

@gregnavis gregnavis merged commit 8aa1c93 into gregnavis:master Jul 20, 2023
32 checks passed
@fatkodima fatkodima deleted the improve-message-for-extraneous_indexes branch July 20, 2023 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants