diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-21 14:59:13 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-21 14:59:13 +0100 |
commit | e8c27767aab0bf6c26d28944268a78fb5ac5d4e0 (patch) | |
tree | 1bbb416eb7736a43dd94ef0b64545a198567f4c1 /app/models/account.rb | |
parent | 954f344cf7cba40a9d6493d2a76f5637beee2e6a (diff) |
Remove orphaned notifications, add scopes param to app create API
Diffstat (limited to 'app/models/account.rb')
-rw-r--r-- | app/models/account.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/account.rb b/app/models/account.rb index 90434f975..16d654195 100644 --- a/app/models/account.rb +++ b/app/models/account.rb @@ -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 |