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

Duplicate migration prompt #42

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kfarst
Copy link

@kfarst kfarst commented Mar 24, 2016

I noticed when running the provided generators that created migrations, if there is any sort of error that required me to run the generator again, it would create a duplicate migration since the timestamp prefix of the migration file name would be different (it would not register as a duplicate file). This PR adds a prompt to alert the user that a version of the migration already exists and, if they choose to create the migration a second time may result in a migration error in the database since the columns/table would already exist.

screen shot 2016-03-23 at 5 07 58 pm

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