Merge pull request #10655 from colinux/fix-export-template-truncate

Tech : fix migration with `execute`
This commit is contained in:
LeSim 2024-07-26 12:24:52 +00:00 committed by GitHub
commit 11208aa6b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,6 @@
class AddDossierFolderColumnToExportTemplate < ActiveRecord::Migration[7.0]
def up
execute "DELETE FROM export_templates;"
safety_assured { execute "DELETE FROM export_templates;" }
add_column :export_templates, :dossier_folder, :jsonb, default: nil, null: false
add_column :export_templates, :export_pdf, :jsonb, default: nil, null: false