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 / 20091220184736_add_indexes_to_issue_status.rb @ 912:5e80956cc792

History | View | Annotate | Download (364 Bytes)

1
class AddIndexesToIssueStatus < ActiveRecord::Migration
2
  def self.up
3
    add_index :issue_statuses, :position
4
    add_index :issue_statuses, :is_closed
5
    add_index :issue_statuses, :is_default
6
  end
7

    
8
  def self.down
9
    remove_index :issue_statuses, :position
10
    remove_index :issue_statuses, :is_closed
11
    remove_index :issue_statuses, :is_default
12
  end
13
end