Rails App - Database Problem

I’m trying to generate scaffolding for one of my models but I keep receiving an error. Here are the details:

ruby script/generate scaffold Person Admin


establish_connection': undefined methodsymbolize_keys’ for

-2:Fixnum (NoMethodError)

from ./script/…/config/environment.rb:59

from script/generate:2:in `require’

from script/generate:2

Environment.rb is setup for production:
RAILS_ENV = ENV[‘RAILS_ENV’] || ‘production’
(I’m assuming the webserver is set up for production by default as stated in the wiki.)

Database.yml has connection information for production also with correct db name and host name.

Any ideas?