rake migrate RAILS_ENV="production"

Jonathan Viney wrote:

export RAILS_ENV=production
rake migrate

Are you sure you haven't manually set the value in environment.rb ...

-Jonathan.

For the newbies out there like me:

In the environment.rb file the environment type has to be in quotes like
so:

RAILS_ENV="production"