logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

20171129172043_add_index_on_stream_entries.rb (280B)


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