mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-04 04:03:25 +08:00
init project
This commit is contained in:
8
app/models/relationship.rb
Normal file
8
app/models/relationship.rb
Normal file
@@ -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