Your rake task is picking up your development environment from
config/environment.rb.
Here's what you can do to start off with a clean production schema
provided you are the only one working on your db and you have
foolishly/wisely modified your db schema without going through a proper
migration strategy..
1) perform a rake db:schema:dump
2) remove all prior migration files
3) perform a rake db:migrate
4) open the migration file just created, and cut and paste the contents
from the schema.rb file that you created in step 1. (during the paste,
just copy the relevant parts, avoid the database create part..)
5) Now you can use that migration file on production
6) Ask that girl in finance out on a date like you promised yourself 2
weeks ago.
hth
ilan
--
Posted via http://www.ruby-forum.com/.