demarches-normaliennes/db/migrate/20220323113327_add_index_to_role_tables.rb
2022-03-29 14:52:38 +02:00

9 lines
299 B
Ruby

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