Skip to content

Instantly share code, notes, and snippets.

View LaSkilzs's full-sized avatar

La Skilzs LaSkilzs

View GitHub Profile
@LaSkilzs
LaSkilzs / heroku_pg_db_reset.md
Created December 13, 2019 20:20 — forked from zulhfreelancer/heroku_pg_db_reset.md
How to reset PG Database on Heroku?

How to reset PG Database on Heroku?

  • Step 1: heroku restart
  • Step 2: heroku pg:reset DATABASE (no need to change the DATABASE)
  • Step 3: heroku run rake db:migrate
  • Step 4: heroku run rake db:seed (if you have seed)

One liner

heroku restart; heroku pg:reset DATABASE --confirm APP-NAME; heroku run rake db:migrate

@LaSkilzs
LaSkilzs / rails http status codes
Created December 16, 2019 16:03 — forked from mlanett/rails http status codes
HTTP status code symbols for Rails
HTTP status code symbols for Rails
Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings.
Status Code Symbol
1xx Informational
100 :continue
101 :switching_protocols
102 :processing