ruby on rails - Heroku Command Line Interface and Interacting with a Postgres -
i trying delete instance post model on heroku database. command line, should 'heroku run post.first.delete' work? i've been trying , doesn't seem work , can't find how this. appreciated.
heroku run x
won't directly put rails console.
as per this article you'll want:
heroku run rails console
from there can delete records.
Comments
Post a Comment