about summary refs log tree commit diff
path: root/db/migrate/20200227214440_add_curated_status_index.rb
blob: 4c489052f15e54d7c60d7c5f02c6b4a670910bb4 (plain) (blame)
1
2
3
4
5
6
7
class AddCuratedStatusIndex < ActiveRecord::Migration[5.2]
  def up
    safety_assured do
      add_index :statuses, [:id, :account_id], where: 'curated AND (NOT hidden) AND (deleted_at IS NULL)', order: { id: :desc }, name: :index_statuses_curated_20200301
    end
  end
end