mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
minor edit
This commit is contained in:
parent
fdfa7dc648
commit
b30293f2f6
1 changed files with 1 additions and 1 deletions
|
@ -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+
|
||||
|
|
Loading…
Reference in a new issue