Skip to content
Browse files

add `(association)`_type to schema convetions in AR basics guide.

  • Loading branch information...
1 parent d131c9a commit 7c69945c765e7704edc01b3910df28a4792da859 @senny senny committed Apr 3, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 guides/source/active_record_basics.md
View
2 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

0 comments on commit 7c69945

Please sign in to comment.
Something went wrong with that request. Please try again.