Remove orphaned notifications, add scopes param to app create API
This commit is contained in:
parent
954f344cf7
commit
e8c27767aa
6 changed files with 10 additions and 1 deletions
|
@ -31,6 +31,7 @@ class Account < ApplicationRecord
|
|||
has_many :statuses, inverse_of: :account, dependent: :destroy
|
||||
has_many :favourites, inverse_of: :account, dependent: :destroy
|
||||
has_many :mentions, inverse_of: :account, dependent: :destroy
|
||||
has_many :notifications, inverse_of: :account, dependent: :destroy
|
||||
|
||||
# Follow relations
|
||||
has_many :active_relationships, class_name: 'Follow', foreign_key: 'account_id', dependent: :destroy
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue