The code powering m.abunchtell.com https://m.abunchtell.com
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 

13 рядки
613 B

  1. # frozen_string_literal: true
  2. class ImproveIndexOnStatusesForApiV1AccountsAccountIdStatuses < ActiveRecord::Migration[5.1]
  3. disable_ddl_transaction!
  4. def change
  5. # These changes ware reverted by migration 20180514140000.
  6. # add_index :statuses, [:account_id, :id, :visibility], where: 'visibility IN (0, 1, 2)', algorithm: :concurrently
  7. # add_index :statuses, [:account_id, :id], where: 'visibility = 3', algorithm: :concurrently
  8. # remove_index :statuses, column: [:account_id, :id, :visibility, :updated_at], order: { id: :desc }, algorithm: :concurrently, name: :index_statuses_20180106
  9. end
  10. end