diff options
Diffstat (limited to 'railties')
-rw-r--r-- | railties/doc/guides/activerecord/association_basics.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/doc/guides/activerecord/association_basics.txt b/railties/doc/guides/activerecord/association_basics.txt index 704971d0e8..58c4738a49 100644 --- a/railties/doc/guides/activerecord/association_basics.txt +++ b/railties/doc/guides/activerecord/association_basics.txt @@ -104,10 +104,11 @@ end === The +has_many+ Association A +has_many+ association indicates a one-to-many connection with another model. You'll often find this association on the "other side" of a +belongs_to+ association. This association indicates that each instance of the model has zero or more instances of another model. For example, in an application containing customers and orders, the customer model could be declared like this: + [source, ruby] ------------------------------------------------------- class Customer < ActiveRecord::Base - has_many :customers + has_many :orders end ------------------------------------------------------- |