repo.or.cz
/
beast-modified.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
beast rev 2066
[beast-modified.git]
/
db
/
migrate
/
035_needed_indexes.rb
blob
cdb82d227ab95809045c605ee83b106251c2a497
1
class NeededIndexes < ActiveRecord::Migration
2
def self.up
3
add_index :posts, :user_id
4
add_index :posts, :topic_id
5
add_index :topics, :forum_id
6
end
7
8
def self.down
9
remove_index :posts, :user_id
10
remove_index :posts, :topic_id
11
remove_index :topics, :forum_id
12
end
13
end