This project is archived and is in readonly mode.
rake db:migrate:status
-
Kevin Skoglund
- Title changed from rake db:migration:status to rake db:migrate:status
-
Rohit Arondekar
- Milestone set to 3.x
- State changed from new to verified
- Assigned user set to José Valim
+1 I would really love this rake task! :)
But the patch has a trailing whitespace problem. Attaching a patch with this fixed. (Preserves complete authorship).
I tried this on a couple of apps and it worked fine.
-
Damien MATHIEU
+1 I love it !
-
Kevin Skoglund
Thanks, Rohit. I overlooked that.
-
José Valim
Would be nice to send this to rails-core list and see people feedback on this. We already have too many tasks and I honestly can't remember a situation in which I needed a task like this although I understand a few people may have had.
-
Kevin Skoglund
Thanks, José. I just sent it to the list.
-
Jeffrey Hardy
Not quite the same thing, but we do have rake db:version.
$ rake db:version Current version: 20100419141336 -
Repository
- State changed from verified to resolved
- Importance changed from to Low
(from [8e3e117dbe58fd4fedbb78a3d8e398ab0e415634]) rake db:migrate:status displays status of migrations [#4947 rake db:migrate:status state:resolved]
Signed-off-by: Michael Koziarski michael@koziarski.com
http://github.com/rails/rails/commit/8e3e117dbe58fd4fedbb78a3d8e398... -
Michael Koziarski
- State changed from resolved to verified
Personally I've wanted this for a while when you merge a long-lived branch it's nice to be able to get a list of everything which has been applied and has yet-to-be-applied. applied to 3,0
-
Akira Matsuda
Very cool feature! I love it!
As I found some problems while playing with it, posted patches on #4990 rake db:migrate:status fails when schema migrations table does not exist.
-
MatthewRudy
This is a good idea,
but perhaps it needs to be honed.I have 172 migrations in my project.
Perhaps it needs some LIMIT=10 option.
-
José Valim
@Koz, if you like it, I like it! ;)
@Akira, thanks!
@Matthew, could you please provide a patch?
-
Kevin Skoglund
Thanks, Michael and Akira!
Matthew: would "rake db:migrate:status | more" do what you need?
