To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / db / migrate / 20100221100219_add_index_on_changesets_scmid.rb @ 1298:4f746d8966dd

History | View | Annotate | Download (254 Bytes)

1
class AddIndexOnChangesetsScmid < ActiveRecord::Migration
2
  def self.up
3
    add_index :changesets, [:repository_id, :scmid], :name => :changesets_repos_scmid
4
  end
5

    
6
  def self.down
7
    remove_index :changesets, :name => :changesets_repos_scmid
8
  end
9
end