Merge pull request #8092 from demarches-simplifiees/add_db_constraint_on_duree_conservation

fix(procedure): ajoute des contraintes not null sur les colonnes duree_conservation
This commit is contained in:
LeSim 2022-11-23 18:05:33 +01:00 committed by GitHub
commit 04393c2402
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,9 @@
class CleanDureeConservation < ActiveRecord::Migration[6.1]
def change
# We ignore strong_migrations safety warnings, because these table is relatively small
safety_assured do
change_column_null :procedures, :duree_conservation_etendue_par_ds, false
change_column_null :procedures, :max_duree_conservation_dossiers_dans_ds, false
end
end
end