Rakefiles are used with Ruby – but you do not need to reset a database with a Rakefile and in fact that gist is not suggesting to do that – the rake task there is to run a Rails migration.
There are two ways to reset your Postgres database on Heroku
If you need to clean out you database but do not want to “reset”, the other way would be to use TablePlus to truncate all your tables (with cascade) and then delete them (including the _Migrations) and make sure you restart identities. I often do this in my dev environment and you can write a SQL script to do that repeatedly if needed.
Thanks for the reply! After you do the reset command, how do you re-run the migrations? After running the reset command it looks like this isn’t happening automatically.