Is there a rake shortcut to:
-
drop the db (dev and test)
-
create
-
migrate
-
run seed
Again for both dev and test environments.
I can create an alias, but curious if there is something built-in.
Is there a rake shortcut to:
drop the db (dev and test)
create
migrate
run seed
Again for both dev and test environments.
I can create an alias, but curious if there is something built-in.
maybe this can help you
rake db:migrate:reset
rake db:seed
Peter
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?