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:
commit
04393c2402
1 changed files with 9 additions and 0 deletions
9
db/migrate/20221122145030_clean_duree_conservation.rb
Normal file
9
db/migrate/20221122145030_clean_duree_conservation.rb
Normal 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
|
Loading…
Reference in a new issue