##// END OF EJS Templates
Rails4: replace deprecated Relation#update_all at Group model...
Toshi MARUYAMA -
r12254:9f079015bf35
parent child
Show More
@@ -87,6 +87,6 class Group < Principal
87 87 def remove_references_before_destroy
88 88 return if self.id.nil?
89 89
90 Issue.update_all 'assigned_to_id = NULL', ['assigned_to_id = ?', id]
90 Issue.where(['assigned_to_id = ?', id]).update_all('assigned_to_id = NULL')
91 91 end
92 92 end
General Comments 0
You need to be logged in to leave comments. Login now