You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20091017213910_add_missing_indexes_to_issues.rb 641B

123456789101112131415161718192021
  1. class AddMissingIndexesToIssues < ActiveRecord::Migration[4.2]
  2. def self.up
  3. add_index :issues, :status_id
  4. add_index :issues, :category_id
  5. add_index :issues, :assigned_to_id
  6. add_index :issues, :fixed_version_id
  7. add_index :issues, :tracker_id
  8. add_index :issues, :priority_id
  9. add_index :issues, :author_id
  10. end
  11. def self.down
  12. remove_index :issues, :status_id
  13. remove_index :issues, :category_id
  14. remove_index :issues, :assigned_to_id
  15. remove_index :issues, :fixed_version_id
  16. remove_index :issues, :tracker_id
  17. remove_index :issues, :priority_id
  18. remove_index :issues, :author_id
  19. end
  20. end