repo.or.cz
/
gitorious.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Handle not ready repos
[gitorious.git]
/
db
/
migrate
/
20091207133046_add_indices_to_favorites.rb
blob
d0e9d365144b5a3ec474ed80bbc424d6dcb523a8
1
class AddIndicesToFavorites < ActiveRecord::Migration
2
def self.up
3
add_index :favorites, [:watchable_type, :watchable_id, :user_id]
4
end
5
6
def self.down
7
remove_index :favorites, [:watchable_type, :watchable_id, :user_id]
8
end
9
end