20220116202951_add_deleted_at_index_on_statuses.rb 243 B

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