Feat(User): add email_verified_at column

This commit is contained in:
simon lehericey 2024-05-24 14:04:22 +02:00
parent dbfd5eed8b
commit bc8e3c35dd
No known key found for this signature in database
GPG key ID: CDE670D827C7B3C5
2 changed files with 7 additions and 1 deletions

View file

@ -0,0 +1,5 @@
class AddEmailVerifiedAtColumnToUsers < ActiveRecord::Migration[7.0]
def change
add_column :users, :email_verified_at, :datetime
end
end

View file

@ -10,7 +10,7 @@
# #
# It's strongly recommended that you check this file into your version control system. # 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 # These are extensions that must be enabled in order to support this database
enable_extension "pg_buffercache" enable_extension "pg_buffercache"
enable_extension "pg_stat_statements" 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.datetime "current_sign_in_at", precision: nil
t.string "current_sign_in_ip" t.string "current_sign_in_ip"
t.string "email", default: "", null: false t.string "email", default: "", null: false
t.datetime "email_verified_at"
t.string "encrypted_password", default: "", null: false t.string "encrypted_password", default: "", null: false
t.integer "failed_attempts", default: 0, null: false t.integer "failed_attempts", default: 0, null: false
t.datetime "inactive_close_to_expiration_notice_sent_at" t.datetime "inactive_close_to_expiration_notice_sent_at"