about summary refs log tree commit diff
path: root/app/models/follow_request.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/follow_request.rb')
-rw-r--r--app/models/follow_request.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/follow_request.rb b/app/models/follow_request.rb
index 132316fb4..8eef3abf4 100644
--- a/app/models/follow_request.rb
+++ b/app/models/follow_request.rb
@@ -1,9 +1,13 @@
 # frozen_string_literal: true
 
 class FollowRequest < ApplicationRecord
+  include Paginable
+
   belongs_to :account
   belongs_to :target_account, class_name: 'Account'
 
+  has_one :notification, as: :activity, dependent: :destroy
+
   validates :account, :target_account, presence: true
   validates :account_id, uniqueness: { scope: :target_account_id }