mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 16:32:04 +02:00
Merge pull request #2226 from internetee/replace-validation-events-indexes-to-concurrency
Replace validation events indexes to concurrency
This commit is contained in:
commit
6c4c5ab43b
5 changed files with 139 additions and 18 deletions
|
@ -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
|
7
db/migrate/20211125184334_add_conc_index_to_contact.rb
Normal file
7
db/migrate/20211125184334_add_conc_index_to_contact.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
class AddConcIndexToContact < ActiveRecord::Migration[6.1]
|
||||
disable_ddl_transaction!
|
||||
|
||||
def change
|
||||
add_index :contacts, :email, :algorithm => :concurrently
|
||||
end
|
||||
end
|
|
@ -0,0 +1,5 @@
|
|||
class AddIndexToJsonValidationEvent < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
add_index :validation_events, :event_data, :using => :gin
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue