demarches-normaliennes/db/migrate/20230813091946_add_groupe_gestionnaire_to_administrateurs.rb
2024-08-22 09:26:48 +02:00

10 lines
332 B
Ruby

# frozen_string_literal: true
class AddGroupeGestionnaireToAdministrateurs < ActiveRecord::Migration[7.0]
disable_ddl_transaction!
def change
# Foreign key is added in a later migration
add_reference :administrateurs, :groupe_gestionnaire, index: { algorithm: :concurrently }, null: true, foreign_key: false
end
end