Как перенести базу данных в Heroku
heroku run rails db:migrate
Jake_bdr
heroku run rails db:migrate
# For Postgres / psql
pg_dump --verbose -F c -Z 0 -U postgres -h localhost -p 5432 yourdbname > local.dump # Save local database to file
heroku pg:reset DATABASE # Reset must occur before upload
heroku config:get DATABASE_URL #postgres:// username : password @ hostname : port / databasename
pg_restore --verbose --no-acl --no-owner -U username -h hostname -p 5432 -d databasename < local.dump
# Enter DATABASE_URL password when prompted
heroku pg:push postgres://<name-host-local-db>/<name-local-db> <your-remote-postgresql-db-url> --app <your-app-name>