#2 修正
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
class UserIp < ApplicationRecord
|
||||
belongs_to :user
|
||||
belongs_to :ip_address
|
||||
|
||||
validates :user_id, presence: true
|
||||
validates :ip_address_id, presence: true
|
||||
end
|
||||
Reference in New Issue
Block a user