From bc8e3c35dd9fc22ac815151d3618fba25c495f3c Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Fri, 24 May 2024 14:04:22 +0200 Subject: [PATCH] Feat(User): add email_verified_at column --- .../20240524120336_add_email_verified_at_column_to_users.rb | 5 +++++ db/schema.rb | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20240524120336_add_email_verified_at_column_to_users.rb diff --git a/db/migrate/20240524120336_add_email_verified_at_column_to_users.rb b/db/migrate/20240524120336_add_email_verified_at_column_to_users.rb new file mode 100644 index 000000000..176b9d2ab --- /dev/null +++ b/db/migrate/20240524120336_add_email_verified_at_column_to_users.rb @@ -0,0 +1,5 @@ +class AddEmailVerifiedAtColumnToUsers < ActiveRecord::Migration[7.0] + def change + add_column :users, :email_verified_at, :datetime + end +end diff --git a/db/schema.rb b/db/schema.rb index 22ee0febd..ff7db2e60 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.0].define(version: 2024_04_17_053843) do +ActiveRecord::Schema[7.0].define(version: 2024_05_24_120336) do # These are extensions that must be enabled in order to support this database enable_extension "pg_buffercache" enable_extension "pg_stat_statements" @@ -1137,6 +1137,7 @@ ActiveRecord::Schema[7.0].define(version: 2024_04_17_053843) do t.datetime "current_sign_in_at", precision: nil t.string "current_sign_in_ip" t.string "email", default: "", null: false + t.datetime "email_verified_at" t.string "encrypted_password", default: "", null: false t.integer "failed_attempts", default: 0, null: false t.datetime "inactive_close_to_expiration_notice_sent_at"