Skip to content

Commit 94bf059

Browse files
vrajmohanMrNagoo
authored andcommitted
Add table to record user confirmation of duplicate profiles (#12081)
changelog: Upcoming Features, One Account, Add table to record user confirmation of duplicate profiles
1 parent d2e4f62 commit 94bf059

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# frozen_string_literal: true
2+
3+
class DuplicateProfileConfirmation < ApplicationRecord
4+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
class CreateDuplicateProfileConfirmations < ActiveRecord::Migration[8.0]
2+
def change
3+
create_table :duplicate_profile_confirmations do |t|
4+
t.references :profile, foreign_key: true, null: false, comment: 'sensitive=false'
5+
t.timestamp :confirmed_at, null: false, comment: 'sensitive=false'
6+
t.bigint :duplicate_profile_ids, null: false, array: true, comment: 'sensitive=false'
7+
t.boolean :confirmed_all, comment: 'sensitive=false'
8+
9+
t.timestamps comment: 'sensitive=false'
10+
end
11+
end
12+
end

db/schema.rb

+11
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,16 @@
208208
t.index ["uuid"], name: "index_document_capture_sessions_on_uuid"
209209
end
210210

211+
create_table "duplicate_profile_confirmations", force: :cascade do |t|
212+
t.bigint "profile_id", null: false, comment: "sensitive=false"
213+
t.datetime "confirmed_at", precision: nil, null: false, comment: "sensitive=false"
214+
t.bigint "duplicate_profile_ids", null: false, comment: "sensitive=false", array: true
215+
t.boolean "confirmed_all", comment: "sensitive=false"
216+
t.datetime "created_at", null: false, comment: "sensitive=false"
217+
t.datetime "updated_at", null: false, comment: "sensitive=false"
218+
t.index ["profile_id"], name: "index_duplicate_profile_confirmations_on_profile_id"
219+
end
220+
211221
create_table "email_addresses", force: :cascade do |t|
212222
t.bigint "user_id", comment: "sensitive=false"
213223
t.string "confirmation_token", limit: 255, comment: "sensitive=true"
@@ -682,6 +692,7 @@
682692
end
683693

684694
add_foreign_key "document_capture_sessions", "users"
695+
add_foreign_key "duplicate_profile_confirmations", "profiles"
685696
add_foreign_key "iaa_gtcs", "partner_accounts"
686697
add_foreign_key "iaa_orders", "iaa_gtcs"
687698
add_foreign_key "in_person_enrollments", "profiles"

0 commit comments

Comments
 (0)