Search code examples
herokuheroku-toolbeltheroku-postgres

heroku pg:pull -e does not exclude given models


Using the following command

heroku pg:pull HEROKU_POSTGRESQL_XXXX_URL xxxx_development -e "versions" --app xxxx

does not exclude versions model from the pull. This is following the heroku docs. I'm wondering if anyone has insight on why this doesn't work, or a different/better way to do it.


Solution

  • You're trying to use a db option with the pg tool. It was Taps that provided the -e/--exclude option but it is no longer relevant having been replaced by heroku-pg-extras. Unfortunately, heroku-pg-extras does not support the -e option at this time.