view db/migrate/20091220184736_add_indexes_to_issue_status.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 AddIndexesToIssueStatus < ActiveRecord::Migration
  def self.up
    add_index :issue_statuses, :position
    add_index :issue_statuses, :is_closed
    add_index :issue_statuses, :is_default
  end

  def self.down
    remove_index :issue_statuses, :position
    remove_index :issue_statuses, :is_closed
    remove_index :issue_statuses, :is_default
  end
end