diff options
Diffstat (limited to 'db/migrate/20091017213910_add_missing_indexes_to_issues.rb')
-rw-r--r-- | db/migrate/20091017213910_add_missing_indexes_to_issues.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/db/migrate/20091017213910_add_missing_indexes_to_issues.rb b/db/migrate/20091017213910_add_missing_indexes_to_issues.rb new file mode 100644 index 000000000..d651a5463 --- /dev/null +++ b/db/migrate/20091017213910_add_missing_indexes_to_issues.rb @@ -0,0 +1,21 @@ +class AddMissingIndexesToIssues < ActiveRecord::Migration + def self.up + add_index :issues, :status_id + add_index :issues, :category_id + add_index :issues, :assigned_to_id + add_index :issues, :fixed_version_id + add_index :issues, :tracker_id + add_index :issues, :priority_id + add_index :issues, :author_id + end + + def self.down + remove_index :issues, :status_id + remove_index :issues, :category_id + remove_index :issues, :assigned_to_id + remove_index :issues, :fixed_version_id + remove_index :issues, :tracker_id + remove_index :issues, :priority_id + remove_index :issues, :author_id + end +end |