20160316103650_add_missing_indices.rb 365 B

123456789101112
  1. # frozen_string_literal: true
  2. class AddMissingIndices < ActiveRecord::Migration[4.2]
  3. def change
  4. add_index :users, :account_id
  5. add_index :statuses, :account_id
  6. add_index :statuses, :in_reply_to_id
  7. add_index :statuses, :reblog_of_id
  8. add_index :stream_entries, :account_id
  9. add_index :stream_entries, [:activity_id, :activity_type]
  10. end
  11. end