Rake shortcut for drop, create, migrate, seed for development and test

Is there a rake shortcut to:

  1. drop the db (dev and test)
  2. create
  3. migrate
  4. run seed

Again for both dev and test environments.

I can create an alias, but curious if there is something built-in.

rake db:migrate:reset
rake db:seed

Peter

Sent from my iPhone

Note that rake db:reset takes your current schema.rb and implements it
in the database. It does not run all your migrations again.

I don’t know about rake db:migrate:reset.

Is there a reason why some tasks like rake db:reset and rake doc:rails
are not visible when we run rake -T? How do we see them then?

On 3/3/12, [email protected]

maybe this can help you
http://erik.debill.org/2011/12/04/rake-for-rails-developers

2012/3/2 S Ahmed [email protected]


You received this message because you are subscribed to the Google G.
“Ruby on Rails: Talk” group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.


Diogo Ribeiro
@diogoribeiro http://twitter.com/#!/diogoribeiro
Bacharelando em Engenharia de Software - UFG

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs