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

Popular posts from this blog

android - Gradle sync Error:Configuration with name 'default' not found -

java - Andrioid studio start fail: Fatal error initializing 'null' -

html - jQuery UI Sortable - Remove placeholder after item is dropped -