DEV: Remove double query in Group#remove_review_group.

Probably a mistake during commit.
This commit is contained in:
Guo Xiang Tan 2020-06-12 10:14:45 +08:00
parent 78b5ab746c
commit 2fbd4eb11f
No known key found for this signature in database
GPG Key ID: FBD110179AAC1F20

@ -57,7 +57,6 @@ class Group < ActiveRecord::Base
def remove_review_groups
Category.where(review_group_id: self.id).update_all(review_group_id: nil)
Category.where(review_group_id: self.id).update_all(review_group_id: nil)
end
validate :name_format_validator