Browse files

amended cache depth migration

  • Loading branch information...
dburrows authored and stefankroes committed Nov 9, 2009
1 parent ad26f7b commit ad6dda9f16181b81ed4f49dcb258c23498ee034e
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.rdoc
@@ -73,7 +73,7 @@ The acts_as_tree methods supports the following options:
:restrict An AncestryException is raised if any children exist
:cache_depth Cache the depth of each node in the 'ancestry_depth' column (default: false)
If you turn depth_caching on for an existing model:
- - Migrate: add_column [table], :ancestry_depth, :default => 0
+ - Migrate: add_column [table], :ancestry_depth, :integer, :default => 0
- Build cache: TreeNode.rebuild_depth_cache!
:depth_cache_column Pass in a symbol to store depth cache in a different column

0 comments on commit ad6dda9

Please sign in to comment.