mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 19:27:52 +01:00
9 lines
157 B
Ruby
9 lines
157 B
Ruby
class Follow < ApplicationRecord
|
|
include TenantOwnable
|
|
|
|
belongs_to :user
|
|
belongs_to :post
|
|
|
|
validates :user_id, uniqueness: { scope: :post_id }
|
|
end
|