From 9d4f18b984d6699bdf96e5f5963edfe80063426c Mon Sep 17 00:00:00 2001 From: Fire Demon Date: Sat, 27 Jun 2020 14:22:30 -0500 Subject: Monsterfork v2 Kaiju Commit 2020.06.27.1 - 2020.09.05.5 --- app/models/conversation.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/models/conversation.rb') diff --git a/app/models/conversation.rb b/app/models/conversation.rb index 4dfaea889..e065c34c8 100644 --- a/app/models/conversation.rb +++ b/app/models/conversation.rb @@ -7,12 +7,17 @@ # uri :string # created_at :datetime not null # updated_at :datetime not null +# account_id :bigint(8) +# public :boolean default(FALSE), not null +# root :string # class Conversation < ApplicationRecord validates :uri, uniqueness: true, if: :uri? has_many :statuses + has_many :mutes, class_name: 'ConversationMute', inverse_of: :conversation, dependent: :destroy + belongs_to :account, inverse_of: :threads, optional: true def local? uri.nil? -- cgit