[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Ovirt-devel] [PATCH] fix storages crazyness



Signed-off-by: Loiseleur Michel <mloiseleur linagora com>
---
 app/models/vm.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/app/models/vm.rb b/app/models/vm.rb
index 88e0aef..0be3f89 100644
--- a/app/models/vm.rb
+++ b/app/models/vm.rb
@@ -27,7 +27,7 @@ class Vm < ActiveRecord::Base
       find(:all, :conditions=>{:state=>Task::STATE_QUEUED})
     end
   end
-  has_and_belongs_to_many :storage_volumes
+  has_and_belongs_to_many :storage_volumes, :uniq => true
 
   has_many :nics, :dependent => :destroy
 
-- 
1.6.2.5


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]