#2 完了
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
class UserPostView < ApplicationRecord
|
||||
belongs_to :user
|
||||
belongs_to :post
|
||||
|
||||
validates :user_id, presence: true
|
||||
validates :post_id, presence: true
|
||||
end
|
||||
Reference in New Issue
Block a user