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
/
20090311152733_make_repository_hash_unique_index.rb
blob
4988cc1a59eccfe8622e1d45364f1ec48401ba63
1
class MakeRepositoryHashUniqueIndex < ActiveRecord::Migration
2
def self.up
3
remove_index :repositories, :hashed_path
4
add_index :repositories, :hashed_path, :unique => true
5
end
6
7
def self.down
8
remove_index :repositories, :hashed_path
9
add_index :repositories, :hashed_path
10
end
11
end