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

14 lines
510 B
Ruby

# frozen_string_literal: true
class CombineDossierAndIndividualUpdates < ActiveRecord::Migration[7.0]
disable_ddl_transaction!
def change
add_column :dossiers, :mandataire_first_name, :string
add_column :dossiers, :mandataire_last_name, :string
add_column :dossiers, :for_tiers, :boolean, default: false, null: false
add_column :individuals, :notification_method, :string
add_column :individuals, :email, :string
add_index :individuals, :email, algorithm: :concurrently
end
end