mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-07-13 21:44:32 +08:00
init project
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
# TODO: 已废弃
|
||||
class Relationship < ApplicationRecord
|
||||
belongs_to :follower, class_name: "User"
|
||||
belongs_to :followed, class_name: "User"
|
||||
|
||||
validates :follower_id, presence: true
|
||||
validates :followed_id, presence: true
|
||||
end
|
||||
Reference in New Issue
Block a user