How to get the id of the row inserted from PG::Result How to get the id of the row inserted from PG::Result heroku heroku