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

Add ecto migration generator for new flags #182

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

brain-geek
Copy link

While our feature flags are defined in code, after deployment to new environment someone needs to manually create those with current approach. That is sometimes prone to errors like creating feature-flag instead of Feature-flag or feature_flag, which creates confusion during testing.

To simplify this process, I have added an optional generator to generate new (newly disabled) flag during migration.

It's heavily based on ecto.gen.migration, and should help if you have multiple environments and want to deploy more feature flags.

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.

1 participant