2024-04-29 00:17:15 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2023-09-04 12:07:04 +02:00
|
|
|
class AddGroupeGestionnaireToAdministrateurs < ActiveRecord::Migration[7.0]
|
|
|
|
disable_ddl_transaction!
|
|
|
|
|
|
|
|
def change
|
2023-10-10 11:00:05 +02:00
|
|
|
# Foreign key is added in a later migration
|
|
|
|
add_reference :administrateurs, :groupe_gestionnaire, index: { algorithm: :concurrently }, null: true, foreign_key: false
|
2023-09-04 12:07:04 +02:00
|
|
|
end
|
|
|
|
end
|