public
Description: Gitorious aims to provide a great way of doing distributed opensource code collaboration.
Homepage: http://gitorious.org/projects/gitorious
Clone URL: git://github.com/dysinger/gitorious.git
Search Repo:
Johan Sørensen (author)
Sun Apr 27 13:36:13 -0700 2008
commit  8edfc4faef76b553f78162511f11dfff3b9d22e4
tree    512c2fce96c97f40905117b2f9f01d490e76910d
parent  6b7133fad99a3e7e349caa4a1c88bb42abca1dd7
gitorious / db / migrate / 026_add_indexes_to_cloners.rb
100644 14 lines (12 sloc) 0.302 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class AddIndexesToCloners < ActiveRecord::Migration
  def self.up
    add_index :cloners, :repository_id
    add_index :cloners, :date
    add_index :cloners, :ip
  end
 
  def self.down
    remove_index :cloners, :repository_id
    remove_index :cloners, :date
    remove_index :cloners, :ip
  end
end