mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
minor edit
This commit is contained in:
@@ -65,7 +65,7 @@ To learn more about the different types of associations, read the next section o
|
||||
|
||||
h3. The Types of Associations
|
||||
|
||||
In Rails, an _association_ is a connection between two Active Record models. Associations are implemented using macro-style calls, so that you can declaratively add features to your models. For example, by declaring that one model +belongs_to+ another, you instruct Rails to maintain Primary Key–Foreign Key information between instances of the two models, and you also get a number of utility methods added to your model. Rails supports six types of association:
|
||||
In Rails, an _association_ is a connection between two Active Record models. Associations are implemented using macro-style calls, so that you can declaratively add features to your models. For example, by declaring that one model +belongs_to+ another, you instruct Rails to maintain Primary Key–Foreign Key information between instances of the two models, and you also get a number of utility methods added to your model. Rails supports six types of associations:
|
||||
|
||||
* +belongs_to+
|
||||
* +has_one+
|
||||
|
||||
Reference in New Issue
Block a user