nginx + passenger + mongoid

When I set the rails_env to production in nginx.conf I get:

Error message:
db_name must be a string or symbol

Check https://github.com/mongoid/mongoid/issues/648

Forgive me for asking the obvious, but did you set the db_name in the production area of database.yml?