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

Support for renaming, removing enum values #10

Closed
mockdeep opened this issue Dec 20, 2019 · 1 comment
Closed

Support for renaming, removing enum values #10

mockdeep opened this issue Dec 20, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@mockdeep
Copy link

Thanks for this gem! It would be nice if this gem had support for renaming and removing enum values as well. It's rare for me to get things right the first time, so being able to easily change them later is pretty valuable.

It looks like on Postgres 10 and up renaming a value is relatively painless. Removing a value isn't directly supported, but it looks like there is a workaround that isn't too horrendous.

@alassek alassek self-assigned this Jan 19, 2020
@alassek alassek added the enhancement New feature or request label Jan 19, 2020
@alassek
Copy link
Owner

alassek commented Jan 19, 2020

Hi @mockdeep, thanks for the feedback. Sorry it took so long for me to respond, I was on vacation.

I've just release v1.1.0, which adds rename_enum and rename_enum_value.

As for removing values, I've provided the necessary tools to do it but I'm not going to support data-munging directly. I don't want to be responsible for altering other people's business data.

@alassek alassek closed this as completed Jan 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants