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 / 20091017212227_add_missing_indexes_to_workflows.rb @ 441:cbce1fd3b1b7

History | View | Annotate | Download (351 Bytes)

1
class AddMissingIndexesToWorkflows < ActiveRecord::Migration
2
  def self.up
3
    add_index :workflows, :old_status_id
4
    add_index :workflows, :role_id
5
    add_index :workflows, :new_status_id
6
  end
7

    
8
  def self.down
9
    remove_index :workflows, :old_status_id
10
    remove_index :workflows, :role_id
11
    remove_index :workflows, :new_status_id
12
  end
13
end