summaryrefslogtreecommitdiffstats
path: root/db/migrate/20100221100219_add_index_on_changesets_scmid.rb
blob: 96d85a3a74018776fab75541b87269a6dfebb364 (plain)
1
2
3
4
5
6
7
8
9
class AddIndexOnChangesetsScmid < ActiveRecord::Migration
  def self.up
    add_index :changesets, [:repository_id, :scmid], :name => :changesets_repos_scmid
  end

  def self.down
    remove_index :changesets, :name => :changesets_repos_scmid
  end
end