Skip to content

Instantly share code, notes, and snippets.

@danfinlay
Created June 16, 2014 19:31
Show Gist options
  • Select an option

  • Save danfinlay/97a336d101511b3573b1 to your computer and use it in GitHub Desktop.

Select an option

Save danfinlay/97a336d101511b3573b1 to your computer and use it in GitHub Desktop.
Unusual Bug!
$ geddy jake db:init environment=test --trace
Setting up DB support for postgres adapter, test environment...
pg lib found in app's package.json, skipping installation.
jake aborted.
TypeError: Cannot set property 'Comment' of undefined
at done (/home/travis/.nvm/v0.10.26/lib/node_modules/geddy/lib/init/model.js:91:36)
at /home/travis/.nvm/v0.10.26/lib/node_modules/geddy/lib/init/model.js:102:20
at /home/travis/.nvm/v0.10.26/lib/node_modules/geddy/node_modules/model/lib/adapters/sql/postgres.js:57:9
The output of my `geddy jake db:init` command is throwing this very strange error.
The error seems to be related to one of my models, but I thought the `db:init` command didn't deal with models! What could cause this?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment