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

Improved migrations version handling #29

Closed
wants to merge 3 commits into from
Closed

Improved migrations version handling #29

wants to merge 3 commits into from

Conversation

calonso
Copy link
Collaborator

@calonso calonso commented Sep 18, 2014

Following the example in the migrations doc (using 001) as the prefix for my migration, and because I didn't read the disclaimer about the version numbers below 😁 , I've had problems with migrations ordering and once solved I found that padding versions with zeroes makes pending migrations method to fail and tries to rerun the migration. Fixed all of these relying on the version nummeric value rather than alphanummeric one.

@jnunemaker
Copy link
Owner

I always use timestamp migrations to ensure ordering.

screen shot 2014-09-18 at 3 52 18 pm

Where does it say to use 001 and such? I definitely would not recommend that and it is wrong if I put that somewhere.

@jnunemaker
Copy link
Owner

Ah, thanks. Sorry about that! I created a new issue to update those docs. #30 Closing this out as we really should recommend timestamps.

@jnunemaker jnunemaker closed this Sep 19, 2014
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