Skip to content
Browse files

amended cache depth migration

  • Loading branch information...
1 parent ad26f7b commit ad6dda9f16181b81ed4f49dcb258c23498ee034e @dburrows dburrows committed with stefankroes Nov 9, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.rdoc
View
2 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.
Something went wrong with that request. Please try again.