summaryrefslogtreecommitdiffstats
path: root/db/migrate/20100221100219_add_index_on_changesets_scmid.rb
blob: cef4be583d2051dd4a483785de510028fbc9a1eb (plain)
1
2
3
4
5
6
7
8
9
class AddIndexOnChangesetsScmid < ActiveRecord::Migration[4.2]
  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