about summary refs log tree commit diff
path: root/db/migrate/20200721195456_add_index_on_statuses_visibility.rb
blob: c45405e9533c0311b4425af09a54c649f74e9c52 (plain) (blame)
1
2
3
4
5
6
7
class AddIndexOnStatusesVisibility < ActiveRecord::Migration[5.2]
  disable_ddl_transaction!

  def change
    add_index :statuses, :visibility, where: 'deleted_at IS NULL', algorithm: :concurrently, name: :index_statuses_on_visibility
  end
end