demarches-normaliennes/db/migrate/20230813091946_add_groupe_gestionnaire_to_administrateurs.rb

8 lines
301 B
Ruby

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