Step 1: First check if the pg_dump utility is available:
pg_dump --versionStep 2: if it is, in your Sails project, run:
pg_dump -U DB_USER_NAME DB_NAME > dump.sqlStep 3: Then import the dump to your heroku app database by running:
heroku pg:psql --app APP_NAME < dump.sqlThe above will import dump.sql to your database.