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 / 085_add_role_tracker_old_status_index_to_workflows.rb @ 441:cbce1fd3b1b7

History | View | Annotate | Download (302 Bytes)

1
class AddRoleTrackerOldStatusIndexToWorkflows < ActiveRecord::Migration
2
  def self.up
3
    add_index :workflows, [:role_id, :tracker_id, :old_status_id], :name => :wkfs_role_tracker_old_status
4
  end
5

    
6
  def self.down
7
    remove_index(:workflows, :name => :wkfs_role_tracker_old_status); rescue
8
  end
9
end