view db/migrate/20091017213536_add_missing_indexes_to_changesets.rb @ 337:d67a7d67b159 cannam-pre-20110113-merge

Ensure the repository URL is marked read-only for external repos; add note about being updated hourly
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Wed, 30 Mar 2011 13:37:30 +0100
parents 513646585e45
children
line wrap: on
line source
class AddMissingIndexesToChangesets < ActiveRecord::Migration
  def self.up
    add_index :changesets, :user_id
    add_index :changesets, :repository_id
  end

  def self.down
    remove_index :changesets, :user_id
    remove_index :changesets, :repository_id
  end
end