Skip to content

Commit

Permalink
[171] Migration to add confidential column to references
Browse files Browse the repository at this point in the history
- Send to DfE analytics
- Add an index
  • Loading branch information
avinhurry committed Nov 21, 2024
1 parent 40a5c05 commit 3e6893a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions config/analytics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,7 @@ shared:
- updated_at
- refused
- feedback
- is_confidential
rejection_feedbacks:
- id
- helpful
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddIsConfidentialToReferences < ActiveRecord::Migration[8.0]
def change
add_column :references, :is_confidential, :boolean, default: true, null: false
end
end
5 changes: 3 additions & 2 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema[7.1].define(version: 2024_09_06_125159) do
ActiveRecord::Schema[8.0].define(version: 2024_11_21_122712) do
create_sequence "qualifications_public_id_seq", start: 120000

# These are extensions that must be enabled in order to support this database
enable_extension "pg_catalog.plpgsql"
enable_extension "pgcrypto"
enable_extension "plpgsql"
enable_extension "unaccent"

create_table "active_storage_attachments", force: :cascade do |t|
Expand Down Expand Up @@ -757,6 +757,7 @@
t.boolean "duplicate", default: false
t.boolean "selected", default: false
t.boolean "refused"
t.boolean "is_confidential", default: true, null: false
t.index ["application_form_id"], name: "index_references_on_application_form_id"
t.index ["feedback_status"], name: "index_references_on_feedback_status"
end
Expand Down
Binary file modified docs/domain-model.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3e6893a

Please sign in to comment.