initial commit from appmail
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
# == 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
|
||||
Reference in New Issue
Block a user