S Ahmed
2012-Mar-03 01:41 UTC
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. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Diogo Ribeiro
2012-Mar-03 02:08 UTC
Re: rake shortcut for drop, create, migrate, seed for development and test
maybe this can help you http://erik.debill.org/2011/12/04/rake-for-rails-developers 2012/3/2 S Ahmed <sahmed1020-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> 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. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > 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 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
peter.vandenabeele.be-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2012-Mar-03 10:49 UTC
Re: rake shortcut for drop, create, migrate, seed for development and test
rake db:migrate:reset rake db:seed Peter Sent from my iPhone On 03 Mar 2012, at 02:41, S Ahmed <sahmed1020-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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. > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Dheeraj Kumar
2012-Mar-03 13:27 UTC
Re: rake shortcut for drop, create, migrate, seed for development and test
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, peter.vandenabeele.be-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <peter.vandenabeele.be-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> rake db:migrate:reset > rake db:seed > > Peter > > Sent from my iPhone > > On 03 Mar 2012, at 02:41, S Ahmed <sahmed1020-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> 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. >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Talk" group. >> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To unsubscribe from this group, send email to >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.