2024-04-29 00:17:15 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2022-03-22 16:53:38 +01:00
|
|
|
class AddIndexToRoleTables < ActiveRecord::Migration[6.1]
|
|
|
|
disable_ddl_transaction!
|
|
|
|
|
|
|
|
def change
|
|
|
|
add_index :administrateurs, :user_id, algorithm: :concurrently
|
|
|
|
add_index :instructeurs, :user_id, algorithm: :concurrently
|
|
|
|
add_index :experts, :user_id, algorithm: :concurrently
|
|
|
|
end
|
|
|
|
end
|