Remove orphaned notifications, add scopes param to app create API

This commit is contained in:
Eugen Rochko
2016-11-21 14:59:13 +01:00
parent 954f344cf7
commit e8c27767aa
6 changed files with 10 additions and 1 deletions

View File

@ -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