How to destroy all records for a table including :dependent records in other tables
console, heroku, ruby-on-rails
Solution
heroku run rails console
> Model.destroy_all
The Model is the name of the model you want to destroy
Problem
What is the best way to do this on Heroku? through the console? I do have 'dependent: :destroy' set for all the dependent tables.