diff --git a/config/analytics_blocklist.yml b/config/analytics_blocklist.yml index c29aabaa30b..a93d2f576bf 100644 --- a/config/analytics_blocklist.yml +++ b/config/analytics_blocklist.yml @@ -239,7 +239,7 @@ - decline_by_default_at - decline_by_default_days :account_recovery_request_codes: - - hashed_code + - code_digest :account_recovery_requests: - previous_account_email_address :site_settings: diff --git a/db/migrate/20250108120414_rename_account_recovery_request_code_column.rb b/db/migrate/20250108120414_rename_account_recovery_request_code_column.rb new file mode 100644 index 00000000000..a79b7dd59ab --- /dev/null +++ b/db/migrate/20250108120414_rename_account_recovery_request_code_column.rb @@ -0,0 +1,8 @@ +class RenameAccountRecoveryRequestCodeColumn < ActiveRecord::Migration[8.0] + def change + safety_assured do + add_column :account_recovery_request_codes, :code_digest, :string, null: false + remove_column :account_recovery_request_codes, :hashed_code, :string, null: false + end + end +end diff --git a/db/schema.rb b/db/schema.rb index c40b5876a53..ae2c4c7cea2 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[8.0].define(version: 2025_01_03_094646) do +ActiveRecord::Schema[8.0].define(version: 2025_01_08_120414) do create_sequence "qualifications_public_id_seq", start: 120000 # These are extensions that must be enabled in order to support this database @@ -19,10 +19,10 @@ enable_extension "unaccent" create_table "account_recovery_request_codes", force: :cascade do |t| - t.string "hashed_code", null: false t.bigint "account_recovery_request_id", null: false t.datetime "created_at", null: false t.datetime "updated_at", null: false + t.string "code_digest", null: false t.index ["account_recovery_request_id"], name: "idx_on_account_recovery_request_id_c1c0af72cc" end