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
|
@ -4,6 +4,8 @@ class Mention < ApplicationRecord
|
|||
belongs_to :account, inverse_of: :mentions
|
||||
belongs_to :status
|
||||
|
||||
has_one :notification, as: :activity, dependent: :destroy
|
||||
|
||||
validates :account, :status, presence: true
|
||||
validates :account, uniqueness: { scope: :status }
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue