Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- association - it is a link - the way two separate instances are linked.
- you only want to change code(attribute) in one place, instead of duplicating.
- normalization - process of taking a table and dividing it into two unique ones.
- foreign key always an integer
- belongs_to -
- has_many
- brand = belongs_to
- foreign key is the belongs_to
- SELECT *
- FROM farmers
- JOIN
- ON
Add Comment
Please, Sign In to add comment