http://guides.rubyonrails.org/migrations.html
- add_column
- add_index
- change_column
- change_table
- create_table
- drop_table
| Effectively Reviewing a Pull Request | |
| ==================================== | |
| How do they work? | |
| ----------------- | |
| - code on a branch or fork | |
| - open pull request | |
| - have people review code | |
| - potentially update the code | |
| - merge pull request |
http://guides.rubyonrails.org/migrations.html
| #!/usr/bin/env bash | |
| # SEE YOU SPACE COWBOY by DANIEL REHN (danielrehn.com) | |
| # Displays a timeless message in your terminal with cosmic color effects | |
| # Usage: add "sh ~/seeyouspacecowboy.sh; sleep 2" to .bash_logout (or similar) in your home directory | |
| # (adjust the sleep variable to display the message for more seconds) | |
| # Cosmic color sequence |
This guide enables you to install (ruby-build) and use (rbenv) multiple versions of ruby, isolate project gems (gemsets and/or bundler), and automatically use appropriate combinations of rubies and gems.
# Ensure system is in ship-shape.
aptitude install git zsh libssl-dev zlib1g-dev libreadline-dev libyaml-dev
| # first: | |
| lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom | while read f; do sudo rm /usr/local/${f}; done | |
| sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.* | |
| # To recap, the best way (I've found) to completely uninstall node + npm is to do the following: | |
| # go to /usr/local/lib and delete any node and node_modules | |
| cd /usr/local/lib | |
| sudo rm -rf node* |
| # | |
| # 2 - REVERSAL | |
| # | |
| # The quickest way to reverse an array is to swap elements at either end, and repeat | |
| # while moving up from the left and down from the right. | |
| # | |
| # [ a b c d e f ] | |
| # [ f a ] - Step 1 we switched A[0] with A[-1] | |
| # [ e b ] - Step 2 we switched A[1] with A[-2] | |
| # [ d c ] - Step 3 we switched A[2] with A[-3] |
| alias mysql=/Applications/MAMP/Library/bin/mysql |