about summary refs log tree commit diff
path: root/db/migrate/20190522043937_add_chat_and_local_indexes_to_statuses.rb
blob: ad4bb11b11f41de5dd5458ada1feed72fdadaf41 (plain) (blame)
1
2
3
4
5
6
class AddChatAndLocalIndexesToStatuses < ActiveRecord::Migration[5.2]
  disable_ddl_transaction!
  def change
    add_index :statuses, [:account_id, :id, :visibility], where: 'visibility IN (0, 1, 2, 4, 5)', algorithm: :concurrently
  end
end