ファイル
btrc-hub/backend/app/models/ip_address.rb
T
2025-02-27 23:38:45 +09:00

7 行
178 B
Ruby

class IpAddress < ApplicationRecord
validates :ip_address, presence: true, length: { maximum: 16 }
validates :banned, inclusion: { in: [true, false] }
has_many :users
end