diff --git a/app/models/extensions/page/tree.rb b/app/models/extensions/page/tree.rb index 2264023f..6970269a 100644 --- a/app/models/extensions/page/tree.rb +++ b/app/models/extensions/page/tree.rb @@ -10,6 +10,10 @@ module Extensions ## fields ## field :position, :type => Integer + ## indexes ## + index :position + index [[:depth, :asc], [:position, :asc]] + ## behaviours ## acts_as_tree :order => ['position', 'asc']