20220116202951_add_deleted_at_index_on_statuses.rb 212 B

1234567
  1. class AddDeletedAtIndexOnStatuses < ActiveRecord::Migration[6.1]
  2. disable_ddl_transaction!
  3. def change
  4. add_index :statuses, :deleted_at, where: 'deleted_at IS NOT NULL', algorithm: :concurrently
  5. end
  6. end