This project is archived and is in readonly mode.
Comments and changes to this ticket
-
keymone May 27th, 2009 @ 07:41 AM
- Tag changed from 2.3.x, active_record, migrator to 2.3.x, active_record, migrator, patch
-
keymone August 3rd, 2009 @ 07:16 AM
we do, but we still have to type full version number like 200910xxxxxxx and looking up for that number each time i do downgrades really frustrates me (even though i do not downgrade very frequently) and
rake db:migrate VERSION=-1
makes me feel happy
-
Michael Koziarski August 5th, 2009 @ 07:05 AM
It just seems a little terse to me.
Could we fix it by simply making sure db:migrate:down has sensible defaults?
-
keymone August 5th, 2009 @ 08:02 AM
the only sensible default for db:migrate:down i can think of is to downgrade to previous version however if you want to downgrade 2 or 3 versions you still have to lookup for correct version number
one more thing i noticed when downgrading using full version number - everytime i stop and think what exactly rake db:migrate:down VERSION=xxxxxx means? will it revert all migrations including xxxxxx nor will it leave database alone at that point? it is not a problem but it does confuse me sometimes on the other hand when i type VERSION=-5 i know it will revert exactly 5 migrations.
-
Dan Pickett May 9th, 2010 @ 07:29 PM
- Tag changed from 2.3.x, active_record, migrator, patch to 2.3.x, active_record, bugmash, migrator, patch
-
Jeff Kreeftmeijer May 15th, 2010 @ 05:45 PM
-1
Like José said, we have
rake db:rollback STEP=n
for this. I could be completely missing something though.
Also, I don't really like theVERSION=-n
syntax. -
Anil Wadghule May 15th, 2010 @ 05:49 PM
-1 Not a necessary feature. VERSION value should only be timestamp or migration number. VERSION as count is confusing.
-
José Valim May 15th, 2010 @ 05:57 PM
- Tag changed from 2.3.x, active_record, bugmash, migrator, patch to 2.3.x, active_record, migrator, patch
- State changed from new to invalid
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>