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

12 lines
392 B
Ruby

# frozen_string_literal: true
class AddAvisEmailNotification < ActiveRecord::Migration[6.1]
def up
add_column :assign_tos, :instant_expert_avis_email_notifications_enabled, :boolean
change_column_default :assign_tos, :instant_expert_avis_email_notifications_enabled, false
end
def down
remove_column :assign_tos, :instant_expert_avis_email_notifications_enabled
end
end