Files
postal/app/models/ip_address.rb
T
2017-04-19 13:07:25 +01:00

22 lines
407 B
Ruby

# == Schema Information
#
# Table name: ip_addresses
#
# id :integer not null, primary key
# ip_pool_id :integer
# ipv4 :string(255)
# ipv6 :string(255)
# created_at :datetime
# updated_at :datetime
# hostname :string(255)
#
class IPAddress < ApplicationRecord
belongs_to :ip_pool
validates :ipv4, :presence => true
validates :hostname, :presence => true
end