add json_body to attestation template

This commit is contained in:
simon lehericey 2023-11-14 12:38:08 +01:00
parent b2d29b28b0
commit f6b10731d3
2 changed files with 7 additions and 1 deletions

View file

@ -0,0 +1,5 @@
class AddJSONBodyColumnToAttestationTemplate < ActiveRecord::Migration[7.0]
def change
add_column :attestation_templates, :json_body, :jsonb
end
end

View file

@ -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