diff options
author | Logan Hunt <loganhunt@simponic.xyz> | 2022-04-15 13:00:42 -0600 |
---|---|---|
committer | Logan Hunt <loganhunt@simponic.xyz> | 2022-04-15 13:00:42 -0600 |
commit | 3cf9f4a364ac91cca30799c8379a682139425e71 (patch) | |
tree | db94f64634e0a840b0a5d1eeef43460ef4e8dd21 /lib/aggiedit/accounts | |
parent | db7c2321cd0af59f9e810e84c7d4eb83ec416458 (diff) | |
download | aggiedit-3cf9f4a364ac91cca30799c8379a682139425e71.tar.gz aggiedit-3cf9f4a364ac91cca30799c8379a682139425e71.zip |
Add comments and vote models; pub/sub voting on posts
Diffstat (limited to 'lib/aggiedit/accounts')
-rw-r--r-- | lib/aggiedit/accounts/user.ex | 2 |
1 files changed, 2 insertions, 0 deletions
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 |