mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 19:27:52 +01:00
Add likes model, controller and tests
This commit is contained in:
@@ -4,6 +4,7 @@ class User < ApplicationRecord
|
||||
:confirmable
|
||||
|
||||
has_many :posts, dependent: :destroy
|
||||
has_many :likes, dependent: :destroy
|
||||
has_many :comments, dependent: :destroy
|
||||
|
||||
enum role: [:user, :moderator, :admin]
|
||||
|
||||
Reference in New Issue
Block a user