From 3cf9f4a364ac91cca30799c8379a682139425e71 Mon Sep 17 00:00:00 2001 From: Logan Hunt Date: Fri, 15 Apr 2022 13:00:42 -0600 Subject: Add comments and vote models; pub/sub voting on posts --- lib/aggiedit/accounts/user.ex | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/aggiedit/accounts') diff --git a/lib/aggiedit/accounts/user.ex b/lib/aggiedit/accounts/user.ex index 65c2463..45c6525 100644 --- a/lib/aggiedit/accounts/user.ex +++ b/lib/aggiedit/accounts/user.ex @@ -14,6 +14,8 @@ defmodule Aggiedit.Accounts.User do belongs_to :room, Room, on_replace: :update has_many :posts, Aggiedit.Rooms.Post + has_many :votes, Aggiedit.Post.Vote + has_many :comments, Aggiedit.Post.Comment timestamps() end -- cgit v1.2.3-70-g09d2