Commit 5da1c50a authored by Małgorzata Ksionek's avatar Małgorzata Ksionek

Refactor migration file

parent 436b8a39
......@@ -7,7 +7,11 @@ class AddIndexToProjectsOnMarkedForDeletion < ActiveRecord::Migration[5.2]
disable_ddl_transaction!
def change
def up
add_concurrent_index :projects, :marked_for_deletion_at, where: 'marked_for_deletion_at IS NOT NULL'
end
def down
remove_concurrent_index :projects, :marked_for_deletion_at
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment