mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-02-13 21:33:20 +01:00
parent
11e8555dae
commit
6b32bddc76
1 changed files with 2 additions and 0 deletions
|
@ -4,6 +4,8 @@ class Relationship < ApplicationRecord
|
|||
validates :source_id, presence: true
|
||||
validates :target_id, presence: true
|
||||
|
||||
default_scope { order(created_at: :asc) }
|
||||
|
||||
after_create do
|
||||
Notification.notify target, self
|
||||
|
||||
|
|
Loading…
Reference in a new issue