Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

amended cache depth migration

  • Loading branch information...
commit ad6dda9f16181b81ed4f49dcb258c23498ee034e 1 parent ad26f7b
@dburrows dburrows authored stefankroes committed
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
Please sign in to comment.
Something went wrong with that request. Please try again.