http://guides.rubyonrails.org/migrations.html
- add_column
- add_index
- change_column
- change_table
- create_table
- drop_table
===================== | |
= TERMINAL COMMANDS = | |
===================== | |
. = current directory | |
.. = back one directory | |
$_ = last thing typed in last command | |
mk dir [name] = make directory [name] | |
touch [filename.extension] = make file with extension |
Behavior Driven Development (BDD) | |
User Acceptance test (capybara) | |
Unit test (rspec) | |
Integration test | |
Stress test | |
Partial => Views | |
Helper => | |
Method => Controller |
================ | |
= Heroku fonts = | |
================ | |
Remember to use HTTPS when importing fonts onto SASS stylesheets in Rails | |
example: @import url(https://...); | |
heroku help | |
heroku help [command] | |
heroku apps:create [name] |
============= | |
= Git setup = | |
============= | |
git config --global user.name "Your Name" | |
git config --global user.email your.email@example.com | |
git config --global push.default matching #ensure forward-compatibility with upcoming releases of Git | |
git config -l = show list of git configurations | |
=========== | |
= Aliases = |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
[ | |
{ "keys": ["super+v"], "command": "paste_and_indent" }, | |
{ "keys": ["super+shift+v"], "command": "paste" }, | |
{ "keys": ["super+shift+r"], "command": "reindent" , "args": {"single_line": false}}, | |
{ "keys": ["super+shift+."], "command": "erb" } | |
] |
https://atom.io/users/atom | |
https://atomlinter.github.io/ | |
https://www.youtube.com/watch?v=hPC6keUUiTA | |
UI Theme: One Dark | |
Syntax Them: One Dark | |
advanced-open-file = cmd + alt + o | |
atom-alignment | |
atom-beautify |
http://guides.rubyonrails.org/migrations.html
Style/EmptyMethod: | |
EnforcedStyle: expanded | |
SupportedStyles: | |
- compact | |
- expanded | |
Style/StringLiterals: | |
EnforcedStyle: single_quotes | |
SupportedStyles: | |
- single_quotes |
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |