Not related to the other two

This commit is contained in:
David Heinemeier Hansson
2025-04-22 21:24:51 +02:00
parent ad1e97767d
commit 72d1d0baee
+1
View File
@@ -3,6 +3,7 @@ class User < ApplicationRecord
has_many :sessions, dependent: :destroy
has_secure_password validations: false
has_one_attached :avatar
has_many :comments, inverse_of: :creator, dependent: :destroy