Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
# These are extensions that must be enabled in order to support this database
enable_extension "citext"
enable_extension "pg_stat_statements"
enable_extension "pgcrypto"
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

enable_extension "plpgsql"

create_table "account_reset_requests", force: :cascade do |t|
Expand Down Expand Up @@ -318,7 +317,7 @@
t.boolean "ready_for_status_check", default: false
t.datetime "notification_sent_at", comment: "The time a notification was sent"
t.datetime "last_batch_claimed_at"
t.string "sponsor_id", comment: "The identification number for USPS to recognize us and our flow (ex: Enhanced IPP)"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this comment was intentionally added based on review feedback, so the sync-up should probably have been to include the comment in the migration itself.

cc @KeithNava @eileen-nava

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment won't appear in the database in environments that have already run this migration, and I'm not sure how often we update migrations that have already been run (though a comment is maybe not over that line)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. I suppose if it's important to have the comment, a separate migration just to add the comment might be the way to go.

t.string "sponsor_id"
t.index ["profile_id"], name: "index_in_person_enrollments_on_profile_id"
t.index ["ready_for_status_check"], name: "index_in_person_enrollments_on_ready_for_status_check", where: "(ready_for_status_check = true)"
t.index ["status_check_attempted_at"], name: "index_in_person_enrollments_on_status_check_attempted_at", where: "(status = 1)"
Expand Down Expand Up @@ -657,7 +656,7 @@
add_foreign_key "iaa_gtcs", "partner_accounts"
add_foreign_key "iaa_orders", "iaa_gtcs"
add_foreign_key "in_person_enrollments", "profiles"
add_foreign_key "in_person_enrollments", "service_providers", column: "issuer", primary_key: "issuer"
add_foreign_key "in_person_enrollments", "service_providers", column: "issuer", primary_key: "issuer", validate: false
add_foreign_key "in_person_enrollments", "users"
add_foreign_key "integration_usages", "iaa_orders"
add_foreign_key "integration_usages", "integrations"
Expand Down