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
|