added concurrency indexes

This commit is contained in:
olegphenomenon 2021-11-25 21:05:58 +02:00
parent d72bc8fb63
commit aba3448744
3 changed files with 101 additions and 1 deletions

View file

@ -0,0 +1,7 @@
class AddTypeIndexToValidationEvent < ActiveRecord::Migration[6.1]
disable_ddl_transaction!
def change
add_index :validation_events, :validation_eventable_id, :algorithm => :concurrently
end
end

View file

@ -0,0 +1,7 @@
class AddConcIndexToContact < ActiveRecord::Migration[6.1]
disable_ddl_transaction!
def change
add_index :contacts, :email, :algorithm => :concurrently
end
end