socialforge/db/migrate/20091220184736_add_indexes_...

14 lines
364 B
Ruby
Raw Normal View History

2013-08-01 10:33:49 +08:00
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