@@ -1,9 +1,9 | |||||
1 | class AddRoleTrackerOldStatusIndexToWorkflows < ActiveRecord::Migration |
|
1 | class AddRoleTrackerOldStatusIndexToWorkflows < ActiveRecord::Migration | |
2 | def self.up |
|
2 | def self.up | |
3 |
add_index :workflows, [:role_id, :tracker_id, :old_status_id], :name => :w |
|
3 | add_index :workflows, [:role_id, :tracker_id, :old_status_id], :name => :wkfs_role_tracker_old_status | |
4 | end |
|
4 | end | |
5 |
|
5 | |||
6 | def self.down |
|
6 | def self.down | |
7 |
remove_index |
|
7 | remove_index(:workflows, :name => :wkfs_role_tracker_old_status); rescue | |
8 | end |
|
8 | end | |
9 | end |
|
9 | end |
General Comments 0
You need to be logged in to leave comments.
Login now