When the test tasks warn that there are pending migrations they are not saying that you need to run migrations on the test schema. They are saying that db/schema.rb is outdated. And halt because normally that's not good.
Now, from within the "test" environment you do not have information to update db/schema.rb automatically. The task to fix that already exists, it is db:migrate. Perhaps a better error message? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" 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-core?hl=en.
