Skip to content

Instantly share code, notes, and snippets.

# Rake Commands
'rake db:create' -- inits database based on ./config/database.yml
'rake db:migrate' -- Actually creates the database itself
'rake db:seed' -- Seeds the database based on ./db/seed.rb
'rake db:reset' -- clear data and start again
'rake notes' -- Shows comments with tags left in code
OPTIMIZE; TODO; FIXME
'rake routes' -- Shows routing from URI pattern/action to Controller
@drumsetz
drumsetz / ror_psql_ubuntu.sh
Last active August 29, 2015 14:20
Ruby on Rails with postgresql clean install on Ubuntu (using rvm)
#! /bin/bash
# Get the latest Git from the PPA
sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git
sudo apt-get install postgresql
# Fixes pg_config error when installing pg gem
sudo apt-get install libpq-dev