Skip to content

Commit

Permalink
ap-5338: add sca fields to application_digest table
Browse files Browse the repository at this point in the history
  • Loading branch information
kmahern committed Nov 13, 2024
1 parent 54927b4 commit 6890b6b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
10 changes: 10 additions & 0 deletions db/migrate/20241107092712_add_sca_fields_to_application_digest.rb
Original file line number Diff line number Diff line change
@@ -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
8 changes: 7 additions & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 6890b6b

Please sign in to comment.