rake db:migrate throws unexpected error

Working with rails for the first time and I getting a rake error when I try: rake db:migrate RAILS_ENV=staging

The Error: (in [my current directory]) rake aborted! undefined method `symbolize_keys' for nil:NilClass

Has anyone seen this?

danwoods wrote:

The Error: (in [my current directory]) rake aborted! undefined method `symbolize_keys' for nil:NilClass

Given that nil does not implement symbolize_keys you need to know where you're ending up with a nil.

Have your run your rake task with the --trace option to see if you get a backtrace that will show you where to look?

rake --trace db:migrate RAILS_ENV=staging