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

[Idea] Including dropping an index as a potentially dangerous operation #49

Closed
jesszwang opened this issue Aug 14, 2018 · 2 comments
Closed

Comments

@jesszwang
Copy link

Hi!

Thanks for your work with strong_migrations - it's a great gem and I'm glad this exists!

Proposal: add drop_index to the list of dangerous operations that strong_migrations catches. As you probably know, this is dangerous because it can turn index lookups into table scans if done improperly.

We've definitely incurred downtime as a result of migrations dropping indexes while using strong_migrations, and would LOVE to roll this check into this gem. Thanks for your work! 👍

@ankane
Copy link
Owner

ankane commented Sep 6, 2018

Hey @jesszwang, thanks for the suggestion 👍 I'm hesitant to add this to the list of dangerous operations (same with drop_table), as I think it'll be more noisy than helpful. I've tried to keep it to ones that are (subjectively) surprising that they could cause issues, although maybe the same could be said for rename_table and rename_column. What message would you give if it were to be added?

@ankane
Copy link
Owner

ankane commented Oct 11, 2018

Cleaning up issues (no response)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants