commit
12c9bd1eca
@ -10,6 +10,10 @@ module Extensions
|
|||||||
## fields ##
|
## fields ##
|
||||||
field :position, :type => Integer
|
field :position, :type => Integer
|
||||||
|
|
||||||
|
## indexes ##
|
||||||
|
index :position
|
||||||
|
index [[:depth, :asc], [:position, :asc]]
|
||||||
|
|
||||||
## behaviours ##
|
## behaviours ##
|
||||||
acts_as_tree :order => ['position', 'asc']
|
acts_as_tree :order => ['position', 'asc']
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user