search for: 89f9876

Displaying 2 results from an estimated 2 matches for "89f9876".

2009 Aug 05
1
[PATCH server] associated nics w/ network base class as it is in the db
...got recently introduced --- src/app/models/network.rb | 2 ++ src/app/models/physical_network.rb | 2 -- src/app/models/vlan.rb | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/app/models/network.rb b/src/app/models/network.rb index a4b1b8b..89f9876 100644 --- a/src/app/models/network.rb +++ b/src/app/models/network.rb @@ -22,6 +22,8 @@ class Network < ActiveRecord::Base has_and_belongs_to_many :usages, :join_table => 'networks_usages' + has_many :nics + validates_presence_of :type, :message => 'A type must...
2009 Sep 23
0
[PATCH server] consolidated network & routing info ui's
...> :destroy + has_many :ip_addresses, :dependent => :destroy # FIXME should really be a has_one # FIXME bondings_nics table should just be replaced with # bonding_id column in nics table, and relationship changed diff --git a/src/app/models/network.rb b/src/app/models/network.rb index 89f9876..22e5692 100644 --- a/src/app/models/network.rb +++ b/src/app/models/network.rb @@ -18,7 +18,7 @@ class Network < ActiveRecord::Base belongs_to :boot_type - has_many :ip_addresses, :dependent => :destroy + has_many :ip_addresses, :dependent => :destroy # FIXME should really be a ha...