From 22aaead96b0de43736c4a585370e68652b6ebb48 Mon Sep 17 00:00:00 2001 From: Katharine Ahern Date: Mon, 11 Nov 2024 11:13:37 +0000 Subject: [PATCH] ap-5338: add sca fields to application_digest table --- ...41107092712_add_sca_fields_to_application_digest.rb | 10 ++++++++++ db/schema.rb | 8 +++++++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20241107092712_add_sca_fields_to_application_digest.rb diff --git a/db/migrate/20241107092712_add_sca_fields_to_application_digest.rb b/db/migrate/20241107092712_add_sca_fields_to_application_digest.rb new file mode 100644 index 0000000000..d8b1d15799 --- /dev/null +++ b/db/migrate/20241107092712_add_sca_fields_to_application_digest.rb @@ -0,0 +1,10 @@ +class AddSCAFieldsToApplicationDigest < ActiveRecord::Migration[7.2] + def change + add_column :application_digests, :biological_parent, :boolean + add_column :application_digests, :parental_responsibility_agreement, :boolean + add_column :application_digests, :parental_responsibility_court_order, :boolean + add_column :application_digests, :child_subject, :boolean + add_column :application_digests, :parental_responsibility_evidence, :boolean + add_column :application_digests, :autogranted, :boolean + end +end diff --git a/db/schema.rb b/db/schema.rb index b744609869..c4449972d7 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.2].define(version: 2024_10_30_094958) do +ActiveRecord::Schema[7.2].define(version: 2024_11_07_092712) do # These are extensions that must be enabled in order to support this database enable_extension "pgcrypto" enable_extension "plpgsql" @@ -183,6 +183,12 @@ t.string "legal_linked_lead_or_associated" t.integer "number_of_legal_linked_applications" t.boolean "no_fixed_address" + t.boolean "biological_parent" + t.boolean "parental_responsibility_agreement" + t.boolean "parental_responsibility_court_order" + t.boolean "child_subject" + t.boolean "parental_responsibility_evidence" + t.boolean "autogranted" t.index ["legal_aid_application_id"], name: "index_application_digests_on_legal_aid_application_id", unique: true end