From e05565fe527fbe4f1a25c4de9cffb3a34c9befd7 Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Tue, 19 Dec 2023 12:51:59 +0100 Subject: [PATCH] chore(schema): add label_logo label_direction to attestation_templates --- config/locales/models/attestation_template/fr.yml | 2 ++ .../20231219093437_add_labels_to_attestation_templates.rb | 6 ++++++ db/schema.rb | 2 ++ 3 files changed, 10 insertions(+) create mode 100644 db/migrate/20231219093437_add_labels_to_attestation_templates.rb diff --git a/config/locales/models/attestation_template/fr.yml b/config/locales/models/attestation_template/fr.yml index 970b77ce2..ed0ef743e 100644 --- a/config/locales/models/attestation_template/fr.yml +++ b/config/locales/models/attestation_template/fr.yml @@ -4,6 +4,8 @@ fr: attestation_template: 'Attestation' attributes: attestation_template: + label_logo: Intitulé du logo Marianne + label_direction: Intitulé de la direction title: Titre de l’attestation body: Contenu de l’attestation footer: Pied de page diff --git a/db/migrate/20231219093437_add_labels_to_attestation_templates.rb b/db/migrate/20231219093437_add_labels_to_attestation_templates.rb new file mode 100644 index 000000000..000f0831a --- /dev/null +++ b/db/migrate/20231219093437_add_labels_to_attestation_templates.rb @@ -0,0 +1,6 @@ +class AddLabelsToAttestationTemplates < ActiveRecord::Migration[7.0] + def change + add_column :attestation_templates, :label_logo, :string, default: nil + add_column :attestation_templates, :label_direction, :string, default: nil + end +end diff --git a/db/schema.rb b/db/schema.rb index 19982ebfc..38d402d88 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -150,6 +150,8 @@ ActiveRecord::Schema[7.0].define(version: 2024_01_26_071130) do t.datetime "created_at", precision: nil, null: false t.text "footer" t.jsonb "json_body" + t.string "label_direction" + t.string "label_logo" t.integer "procedure_id" t.text "title" t.datetime "updated_at", precision: nil, null: false