about summary refs log tree commit diff
path: root/db/migrate/20220116202951_add_deleted_at_index_on_statuses.rb
blob: dc33625528139288b90212de3ec1e2c00bc720e2 (plain) (blame)
1
2
3
4
5
6
7
class AddDeletedAtIndexOnStatuses < ActiveRecord::Migration[6.1]
  disable_ddl_transaction!

  def change
    add_index :statuses, :deleted_at, where: 'deleted_at IS NOT NULL', algorithm: :concurrently
  end
end