repo.or.cz
/
askyou.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
;]
[askyou.git]
/
db
/
migrate
/
20091220183509_add_lft_and_rgt_indexes_to_projects.rb
blob
1c0b4b3138499642f6a400f991aed187f595772f
1
class AddLftAndRgtIndexesToProjects < ActiveRecord::Migration
2
def self.up
3
add_index :projects, :lft
4
add_index :projects, :rgt
5
end
6
7
def self.down
8
remove_index :projects, :lft
9
remove_index :projects, :rgt
10
end
11
end