| ⌘T | go to file |
| ⌘⌃P | go to project |
| ⌘R | go to methods |
| ⌃G | go to line |
| ⌘KB | toggle side bar |
| ⌘⇧P | command prompt |
Attention: if you attempt to fork this gist, github will think that you are a spammer and you will have to confirm that you are human with them. Apparantly there are too many links in this list. Also I update it rather frequently (see revisions on the left), so it's probably wise to not fork it anyway.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require_relative '../app' | |
| describe Cohort do | |
| before :each do | |
| Cohort.transaction | |
| end | |
| after :each do | |
| Cohort.rollback | |
| end |
- ORM or Object Relational Mapping is technique often used map the data in databases to the world of objects in our programs
- Active Record is a Design Pattern which can be used to implement ORM
- Active Record is also the name of a very popular Ruby ORM Implementation
- Domain Specific Model classes are defined for specific tables
- Each Model
classmaps to atable - Class methods map to actions on the table
find, ->SELECT