From 7c69945c765e7704edc01b3910df28a4792da859 Mon Sep 17 00:00:00 2001 From: Yves Senn Date: Wed, 3 Apr 2013 13:36:30 +0200 Subject: add `(association)`_type to schema convetions in AR basics guide. --- guides/source/active_record_basics.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'guides/source') 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 -- cgit v1.2.3