Add index to backups on user_id
column (#25647)
This commit is contained in:
parent
78ba12f0bf
commit
c47cdf6e17
2 changed files with 11 additions and 1 deletions
|
@ -0,0 +1,9 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddIndexBackupsOnUserId < ActiveRecord::Migration[6.1]
|
||||
disable_ddl_transaction!
|
||||
|
||||
def change
|
||||
add_index :backups, :user_id, algorithm: :concurrently
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue