From 086d4871451a0d609f539235e9b3da87279f5008 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Wed, 16 Mar 2016 21:14:39 +0100 Subject: Fix unfollows --- app/models/follow.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/models/follow.rb') diff --git a/app/models/follow.rb b/app/models/follow.rb index 3521247e8..e458a07f3 100644 --- a/app/models/follow.rb +++ b/app/models/follow.rb @@ -2,7 +2,7 @@ class Follow < ActiveRecord::Base belongs_to :account belongs_to :target_account, class_name: 'Account' - has_one :stream_entry, as: :activity, dependent: :destroy + has_one :stream_entry, as: :activity validates :account, :target_account, presence: true validates :account_id, uniqueness: { scope: :target_account_id } -- cgit