Handle not ready repos
[gitorious.git] / db / migrate / 20090311152733_make_repository_hash_unique_index.rb
blob4988cc1a59eccfe8622e1d45364f1ec48401ba63
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
7   def self.down
8     remove_index :repositories, :hashed_path
9     add_index :repositories, :hashed_path
10   end
11 end