Skip to content

Commit

Permalink
Merge pull request #10655 from colinux/fix-export-template-truncate
Browse files Browse the repository at this point in the history
Tech : fix migration with `execute`
  • Loading branch information
LeSim authored Jul 26, 2024
2 parents 12c174f + 96489e5 commit 11208aa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 11208aa

Please sign in to comment.