Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 9th, 2012  |  syntax: None  |  size: 0.99 KB  |  hits: 16  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Why isn't db:migrate get called as a prerequisite?
  2. task :bootstrap => [:environment,:"db:reset",:"db:migrate"] do ...
  3.        
  4. ** Invoke bs:bootstrap (first_time)
  5. ** Invoke environment (first_time)
  6. ** Execute environment
  7. ** Invoke db:reset (first_time)
  8. ** Invoke db:drop (first_time)
  9. ** Invoke db:load_config (first_time)
  10. ** Invoke rails_env (first_time)
  11. ** Execute rails_env
  12. ** Execute db:load_config
  13. ** Execute db:drop
  14. ** Invoke db:setup (first_time)
  15. ** Invoke db:create (first_time)
  16. ** Invoke db:load_config
  17. ** Execute db:create
  18. ** Invoke db:schema:load (first_time)
  19. ** Invoke environment
  20. ** Execute db:schema:load
  21. -- create_table("projects", {:force=>true})
  22.    -> 0.0770s
  23. -- create_table("users", {:force=>true})
  24.    -> 0.1110s
  25. ...
  26. ** Invoke db:seed (first_time)
  27. ** Invoke db:abort_if_pending_migrations (first_time)
  28. ** Invoke environment
  29. ** Execute db:abort_if_pending_migrations
  30. You have 1 pending migrations:
  31.   20120109172252 CreateObjectives
  32. Run "rake db:migrate" to update your database then try again.