;]
[askyou.git] / db / migrate / 20091017212227_add_missing_indexes_to_workflows.rb
blob13fa0137e21968c7ccbe35e8e1c3e73f436ba44c
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
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