Dear all, task ''test'' do Rake::Task[''db:create:all''].invoke Rake::Task[''db:migrate''].invoke end Did I miss something or what? Turns out that this simple task would have migration done in the test db. I''ve tried to "puts RAILS_ENV" inbetween and it shows "development", but migration''s still done in the test db. Any ideas? Thanks. ps. However if I break the 2 lines into 2 separate tasks, run them individually; then migration''s done in the development db as expected. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---