Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Associations
- - A link, relationship, ect. between two things
- - Process of breaking database tables into seperate tables (2 or more),
- then reducing the table down to unique instances is called "Normalization"
- - Foreign Key = A key of a foreign table
- -naming convention: -name of foreign table- + -id-
- One to many association:
- - belongs_to, describes association, passes in singular symbol
- - has_many, decribes association, passes in plural symbol
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement