#2 ぼちぼち
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
class IpAddress < ApplicationRecord
|
||||
validates :ip_address, presence: true, length: { maximum: 16 }
|
||||
validates :banned, inclusion: { in: [true, false] }
|
||||
|
||||
has_many :users
|
||||
end
|
||||
Reference in New Issue
Block a user