Handle not ready repos
[gitorious.git] / db / migrate / 026_add_indexes_to_cloners.rb
blob51d49ecf8f6280a684113b163d6ed832af4458c5
1 class AddIndexesToCloners < ActiveRecord::Migration
2   def self.up
3     add_index :cloners, :repository_id
4     add_index :cloners, :date
5     add_index :cloners, :ip
6   end
8   def self.down
9     remove_index :cloners, :repository_id
10     remove_index :cloners, :date
11     remove_index :cloners, :ip
12   end
13 end