FIX: GroupArchivedMessage belongs to Group, not User

This commit is contained in:
Dan Ungureanu
2020-05-19 14:13:28 +03:00
parent e9f579bd3f
commit 05ca0c908f

View File

@@ -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)