mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Remove topic links when a post is deleted
This commit is contained in:
@@ -13,7 +13,7 @@ class TopicLink < ActiveRecord::Base
|
||||
|
||||
validates_uniqueness_of :url, scope: [:topic_id, :post_id]
|
||||
|
||||
has_many :topic_link_clicks
|
||||
has_many :topic_link_clicks, dependent: :destroy
|
||||
|
||||
validate :link_to_self
|
||||
|
||||
|
||||
Reference in New Issue
Block a user