how to use mongodb with heroku code example
Example 1: connect to db heroku
heroku pg:psql -f schema.sql -a HEROKU_APP_NAME
Example 2: mongodb add on heroku
$ heroku addons:create mongolab:sandbox
heroku pg:psql -f schema.sql -a HEROKU_APP_NAME
$ heroku addons:create mongolab:sandbox