fix(schema): execute must explicitly ensure safety

This commit is contained in:
Colin Darie 2024-07-26 14:12:45 +02:00
parent 12c174f6cf
commit 96489e5802
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4

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