diff options
author | Yves Senn <yves.senn@gmail.com> | 2013-04-03 13:36:30 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2013-04-03 13:36:30 +0200 |
commit | 7c69945c765e7704edc01b3910df28a4792da859 (patch) | |
tree | d0ef3a92320e551357d7ae214eee68cf01c26e26 /guides/source | |
parent | d131c9a4f6f49b8c7378fedd651d81f423dec193 (diff) | |
download | rails-7c69945c765e7704edc01b3910df28a4792da859.tar.gz rails-7c69945c765e7704edc01b3910df28a4792da859.tar.bz2 rails-7c69945c765e7704edc01b3910df28a4792da859.zip |
add `(association)`_type to schema convetions in AR basics guide.
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/active_record_basics.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/guides/source/active_record_basics.md b/guides/source/active_record_basics.md index 7a5e1bf4eb..91d3ed4da8 100644 --- a/guides/source/active_record_basics.md +++ b/guides/source/active_record_basics.md @@ -117,6 +117,8 @@ to Active Record instances: a model. * `type` - Specifies that the model uses [Single Table Inheritance](http://api.rubyonrails.org/classes/ActiveRecord/Base.html) +* `(association_name)_type` - Stores the type for + [polymorphic associations](association_basics.html#polymorphic-associations). * `(table_name)_count` - Used to cache the number of belonging objects on associations. For example, a `comments_count` column in a `Post` class that has many instances of `Comment` will cache the number of existent comments |