From 16685a25e2a5d327d85afc52884540d3b2fed485 Mon Sep 17 00:00:00 2001 From: magicmilo Date: Wed, 10 Nov 2021 19:50:02 +0000 Subject: [PATCH] nearly working --- config/forms/schema/test.json | 35 +++++++++++++++++++++++++++++++++++ db/schema.rb | 13 ++++++++++++- 2 files changed, 47 insertions(+), 1 deletion(-) diff --git a/config/forms/schema/test.json b/config/forms/schema/test.json index 90a06942d..f81b52d6c 100644 --- a/config/forms/schema/test.json +++ b/config/forms/schema/test.json @@ -40,6 +40,41 @@ "label": { "description": "", "type": "string" + }, + "pages": { + "type": "object", + "patternProperties": { + "[a-z_\/#]+": { + "description": "", + "type": "object", + "properties": { + "questions": { + "type": "object", + "patternProperties": { + "[a-z_\/#]+": { + "description": "", + "type": "object", + "properties": { + "check_answer_label": { + "description": "", + "type": "string" + }, + "header": { + "description": "", + "type": "string" + }, + "type": { + "description": "", + "type": "string" + } + } + } + } + } + }, + "minProperties": 1 + } + } } }, "minProperties": 1 diff --git a/db/schema.rb b/db/schema.rb index 7f75e5e87..ddd456c43 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.define(version: 2021_10_28_095000) do +ActiveRecord::Schema.define(version: 2021_11_02_100820) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -133,6 +133,17 @@ ActiveRecord::Schema.define(version: 2021_10_28_095000) do t.boolean "reasonable_preference_reason_do_not_know" t.datetime "discarded_at" t.string "other_tenancy_type" + t.string "gdpr_acceptance" + t.string "gdpr_declined" + t.string "property_owner_organisation" + t.string "property_manager_organisation" + t.string "sale_or_letting" + t.string "tenant_same_property_renewal" + t.string "rent_type" + t.string "intermediate_rent_product_name" + t.string "needs_type" + t.string "sale_completion_date" + t.string "purchaser_code" t.boolean "override_net_income_validation" t.string "net_income_known" t.index ["discarded_at"], name: "index_case_logs_on_discarded_at"