How can I run a script in the Heroku console to make direct changes to the database?
heroku pg:backups:capture --app application-name
heroku run bash --app application-name
bundle exec rails runner script/delete_duplicate_contacts.rb
quit
~$ exit
If that fails or a transaction rollback occurs, you can drop scripts directly into the console:
bundle exec rails c
irb(main):001:0> paste script here irb(main):002:1* each line break will be on a new console line
There was an error while loading. Please reload this page.
Home
TODO: can we recreate the tag system here roughly with sections about certain subjects?