about summary refs log tree commit diff
path: root/app/models/session_activation.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/session_activation.rb')
-rw-r--r--app/models/session_activation.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/session_activation.rb b/app/models/session_activation.rb
index 7eb16af8f..c1645223b 100644
--- a/app/models/session_activation.rb
+++ b/app/models/session_activation.rb
@@ -25,6 +25,7 @@
 #
 
 class SessionActivation < ApplicationRecord
+  belongs_to :user, inverse_of: :session_activations, required: true
   belongs_to :access_token, class_name: 'Doorkeeper::AccessToken', dependent: :destroy
   belongs_to :web_push_subscription, class_name: 'Web::PushSubscription', dependent: :destroy