Use DB for auth sessions (#1233)

* DB sessions

* Validations for profile image
This commit is contained in:
Zach Gollwitzer
2024-10-03 14:42:22 -04:00
committed by GitHub
parent 82c298307d
commit 1ffa13f3b3
27 changed files with 118 additions and 76 deletions

8
app/models/session.rb Normal file
View File

@@ -0,0 +1,8 @@
class Session < ApplicationRecord
belongs_to :user
before_create do
self.user_agent = Current.user_agent
self.ip_address = Current.ip_address
end
end