Displaying 1 result from an estimated 1 matches for "0be3f89".
2009 Oct 08
3
[PATCH] fix storages crazyness
Signed-off-by: Loiseleur Michel <mloiseleur at 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
 
   h...