aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gunderloy <MikeG1@larkfarm.com>2008-10-04 08:30:20 -0500
committerMike Gunderloy <MikeG1@larkfarm.com>2008-10-04 08:30:20 -0500
commit2fc835d646ec4c420639a2b5e8edd5fb204c0414 (patch)
tree66d6877812cf3427e2a87c043109ed50916e7331
parentf2dee4915306e6bd1554e47640d201600ac39c41 (diff)
downloadrails-2fc835d646ec4c420639a2b5e8edd5fb204c0414.tar.gz
rails-2fc835d646ec4c420639a2b5e8edd5fb204c0414.tar.bz2
rails-2fc835d646ec4c420639a2b5e8edd5fb204c0414.zip
Remove erroneous warning about counter_cache column defaults.
-rwxr-xr-xactiverecord/lib/active_record/associations.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb
index 4d36216c34..d1a0b2f96a 100755
--- a/activerecord/lib/active_record/associations.rb
+++ b/activerecord/lib/active_record/associations.rb
@@ -955,8 +955,6 @@ module ActiveRecord
# destroyed. This requires that a column named <tt>#{table_name}_count</tt> (such as +comments_count+ for a belonging Comment class)
# is used on the associate class (such as a Post class). You can also specify a custom counter cache column by providing
# a column name instead of a +true+/+false+ value to this option (e.g., <tt>:counter_cache => :my_custom_counter</tt>.)
- # When creating a counter cache column, the database statement or migration must specify a default value of <tt>0</tt>, failing to do
- # this results in a counter with +NULL+ value, which will never increment.
# Note: Specifying a counter cache will add it to that model's list of readonly attributes using +attr_readonly+.
# [:include]
# Specify second-order associations that should be eager loaded when this object is loaded.