From 05ca0c908fb83e4e29af1dccee83110a227aafbb Mon Sep 17 00:00:00 2001 From: Dan Ungureanu Date: Tue, 19 May 2020 14:13:28 +0300 Subject: [PATCH] FIX: GroupArchivedMessage belongs to Group, not User --- app/models/group_archived_message.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/group_archived_message.rb b/app/models/group_archived_message.rb index 1715a57585f..8199a53cf62 100644 --- a/app/models/group_archived_message.rb +++ b/app/models/group_archived_message.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true class GroupArchivedMessage < ActiveRecord::Base - belongs_to :user + belongs_to :group belongs_to :topic def self.move_to_inbox!(group_id, topic)