diff options
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20170418160728_add_indexes_to_reports_for_accounts.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/db/migrate/20170418160728_add_indexes_to_reports_for_accounts.rb b/db/migrate/20170418160728_add_indexes_to_reports_for_accounts.rb new file mode 100644 index 000000000..cd69bb8b1 --- /dev/null +++ b/db/migrate/20170418160728_add_indexes_to_reports_for_accounts.rb @@ -0,0 +1,6 @@ +class AddIndexesToReportsForAccounts < ActiveRecord::Migration[5.0] + def change + add_index :reports, :account_id + add_index :reports, :target_account_id + end +end |