20171129172043_add_index_on_stream_entries.rb 311 B

12345678910
  1. # frozen_string_literal: true
  2. class AddIndexOnStreamEntries < ActiveRecord::Migration[5.2]
  3. disable_ddl_transaction!
  4. def change
  5. add_index :stream_entries, [:account_id, :activity_type, :id], algorithm: :concurrently
  6. remove_index :stream_entries, name: :index_stream_entries_on_account_id
  7. end
  8. end