summaryrefslogtreecommitdiffstats
path: root/db/migrate/20091220184736_add_indexes_to_issue_status.rb
blob: 9b943518b04c7dec61c7eb10ad0438ce6d3ee63d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
class AddIndexesToIssueStatus < ActiveRecord::Migration[4.2]
  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