Changeset 195
- Timestamp:
- 07/30/08 18:54:57 (4 months ago)
- Files:
-
- nethorus/app/models/ipv4_network.rb (modified) (2 diffs)
- nethorus/app/models/site.rb (modified) (1 diff)
- nethorus/db/migrate/038_update_ipv4_networks_add_site.rb (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
nethorus/app/models/ipv4_network.rb
r168 r195 39 39 The network mask of this IPv4 address in long integer format. 40 40 41 [site_id] 42 The site in which this network is located, or nil if it spans multiple sites. 43 41 44 [ipvpn_id] 42 45 A foreign key holding the primary key of IPVPN (or VRF) to which this network belongs. … … 53 56 54 57 class Ipv4Network < ActiveRecord::Base 58 59 belongs_to :site 55 60 56 61 validates_presence_of :network_address, :network_mask nethorus/app/models/site.rb
r168 r195 29 29 30 30 has_many :device 31 has_many :ipv4_network 31 32 32 33 validates_presence_of :description
