Merge pull request #2226 from internetee/replace-validation-events-indexes-to-concurrency

Replace validation events indexes to concurrency
This commit is contained in:
Timo Võhmar 2021-11-29 10:42:56 +02:00 committed by GitHub
commit 6c4c5ab43b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 139 additions and 18 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

View file

@ -0,0 +1,5 @@
class AddIndexToJsonValidationEvent < ActiveRecord::Migration[6.1]
def change
add_index :validation_events, :event_data, :using => :gin
end
end