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

11 lines
332 B
Ruby
Raw Normal View History

# 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