From f6b10731d3f0c770c35d768887ce53ec044f961e Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Tue, 14 Nov 2023 12:38:08 +0100 Subject: [PATCH] add json_body to attestation template --- ...114113317_add_json_body_column_to_attestation_template.rb | 5 +++++ db/schema.rb | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20231114113317_add_json_body_column_to_attestation_template.rb diff --git a/db/migrate/20231114113317_add_json_body_column_to_attestation_template.rb b/db/migrate/20231114113317_add_json_body_column_to_attestation_template.rb new file mode 100644 index 000000000..4277ac024 --- /dev/null +++ b/db/migrate/20231114113317_add_json_body_column_to_attestation_template.rb @@ -0,0 +1,5 @@ +class AddJSONBodyColumnToAttestationTemplate < ActiveRecord::Migration[7.0] + def change + add_column :attestation_templates, :json_body, :jsonb + end +end diff --git a/db/schema.rb b/db/schema.rb index 9c4e8f408..639538ca5 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[7.0].define(version: 2023_11_10_135533) do +ActiveRecord::Schema[7.0].define(version: 2023_11_14_113317) do # These are extensions that must be enabled in order to support this database enable_extension "pgcrypto" enable_extension "plpgsql" @@ -145,6 +145,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_11_10_135533) do t.text "body" t.datetime "created_at", precision: 6, null: false t.text "footer" + t.jsonb "json_body" t.integer "procedure_id" t.text "title" t.datetime "updated_at", precision: 6, null: false