Skip to content

Instantly share code, notes, and snippets.

View chrisfishwood's full-sized avatar

Chris Steinmeyer chrisfishwood

  • HashiCorp
  • Tucson, AZ
View GitHub Profile
mix phoenix.gen.html Company companies name:string mission_statement:string
mix phoenix.gen.html Manager managers name:string meetings_per_day:integer company_id:references:companies
mix phoenix.gen.html Meeting meetings topic:string attendee_count:integer manager_id:references:managers
@chrisfishwood
chrisfishwood / error.sh
Last active May 19, 2016 06:04
Errors after renaming a phoenix project
A new Hex version is available (0.12.0), please update with `mix local.hex`
Unchecked dependencies for environment test:
* gettext (Hex package)
 the dependency is not available, run “mix deps.get”
* cowboy (Hex package)
 the dependency is not available, run “mix deps.get”
* phoenix_html (Hex package)
 the dependency is not available, run “mix deps.get”
* phoenix (Hex package)
 the dependency is not available, run “mix deps.get”
@chrisfishwood
chrisfishwood / router.ex
Last active May 19, 2016 06:03
EctoUuid router.ex
defmodule EctoUuid.Router do
use EctoUuid.Web, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end