2007-12-07 14:19:30 +03:00
|
|
|
class AddRoleTrackerOldStatusIndexToWorkflows < ActiveRecord::Migration
|
|
|
|
def self.up
|
2008-01-15 23:40:59 +03:00
|
|
|
add_index :workflows, [:role_id, :tracker_id, :old_status_id], :name => :wkfs_role_tracker_old_status
|
2007-12-07 14:19:30 +03:00
|
|
|
end
|
|
|
|
|
|
|
|
def self.down
|
2008-01-15 23:40:59 +03:00
|
|
|
remove_index(:workflows, :name => :wkfs_role_tracker_old_status); rescue
|
2007-12-07 14:19:30 +03:00
|
|
|
end
|
|
|
|
end
|