1 class AddIndexesForIssues < ActiveRecord::Migration
3 add_index :issues, :user_id
4 add_index :issues, [:reportable_id, :reportable_type]
5 add_index :reports, :issue_id
6 add_index :reports, :user_id
7 add_index :issue_comments, :user_id
8 add_index :issue_comments, :issue_id
12 remove_index :issues, :user_id
13 remove_index :issues, [:reportable_id, :reportable_type]
14 remove_index :reports, :issue_id
15 remove_index :reports, :user_id
16 remove_index :issue_comments, :user_id
17 remove_index :issue_comments, :issue_id