Skip to content

Commit

Permalink
Add identity uuid to users table
Browse files Browse the repository at this point in the history
This may be useful for debugging.
  • Loading branch information
malcolmbaig committed Dec 5, 2023
1 parent 170a13c commit e90ccf1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/analytics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ shared:
- family_name
- trn
- date_of_birth
- identity_uuid
:search_logs:
- id
- dsi_user_id
Expand Down
5 changes: 5 additions & 0 deletions db/migrate/20231204210527_add_identity_uuid_to_users.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddIdentityUuidToUsers < ActiveRecord::Migration[7.0]
def change
add_column :users, :identity_uuid, :uuid
end
end
3 changes: 2 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.0].define(version: 2023_11_16_115727) do
ActiveRecord::Schema[7.0].define(version: 2023_12_04_210527) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"

Expand Down Expand Up @@ -184,6 +184,7 @@
t.string "family_name", limit: 510
t.string "trn"
t.date "date_of_birth"
t.uuid "identity_uuid"
t.index ["email"], name: "index_users_on_email", unique: true
end

Expand Down

0 comments on commit e90ccf1

Please sign in to comment.