From e4a82247150135fb7f68bf7f273198811ef01deb Mon Sep 17 00:00:00 2001 From: samyou-softwire Date: Mon, 20 Apr 2026 16:17:54 +0100 Subject: [PATCH] CLDC-4330: Add reset password on confirmation flag to be used instead of resetting sign in count to 0 --- ...0420151627_add_reset_password_on_confirmation_to_users.rb | 5 +++++ db/schema.rb | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20260420151627_add_reset_password_on_confirmation_to_users.rb diff --git a/db/migrate/20260420151627_add_reset_password_on_confirmation_to_users.rb b/db/migrate/20260420151627_add_reset_password_on_confirmation_to_users.rb new file mode 100644 index 000000000..72bfa6785 --- /dev/null +++ b/db/migrate/20260420151627_add_reset_password_on_confirmation_to_users.rb @@ -0,0 +1,5 @@ +class AddResetPasswordOnConfirmationToUsers < ActiveRecord::Migration[7.2] + def change + add_column :users, :reset_password_on_confirmation, :boolean, default: false + end +end diff --git a/db/schema.rb b/db/schema.rb index 37e5c764e..9ab58bf62 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[7.2].define(version: 2026_03_05_095832) do +ActiveRecord::Schema[7.2].define(version: 2026_04_20_151627) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -924,6 +924,7 @@ ActiveRecord::Schema[7.2].define(version: 2026_03_05_095832) do t.datetime "discarded_at" t.string "phone_extension" t.datetime "values_updated_at" + t.boolean "reset_password_on_confirmation", default: false t.index ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true t.index ["email"], name: "index_users_on_email", unique: true t.index ["encrypted_otp_secret_key"], name: "index_users_on_encrypted_otp_secret_key", unique: true