Running migrations in production mode (rails)
Posted by: knosk
Posted on: 2007-04-06 11:50:00
Hi guys,
I have a Rails application up at www.knosk.com. In config/environment.rb, I have forced the application into "production" mode with the line:
RAILS_ENV = 'production'
When I check the RAILS_ENV variable in IRB, it says "production."
However, when I run a migration, it uses the development database. I have tried killing my ruby process and restarting it by accessing Knosk, but running a migration after this still only deals with the development database.
Can anyone help me switch my database into production mode?
I appreciate your help fellow Ruby ninjas.
Peace!