From 7786c6c6f29222e7441e953b4bf8c334ae9ed89b Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Tue, 5 Sep 2017 09:14:35 +0800 Subject: [PATCH] Remove duplicated scope. --- app/models/user.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/models/user.rb b/app/models/user.rb index e86f5966a30..74792fa87b7 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -139,8 +139,6 @@ class User < ActiveRecord::Base ucf.value::int > 0 )', 'master_id') } - scope :staff, -> { where("admin OR moderator") } - # TODO-PERF: There is no indexes on any of these # and NotifyMailingListSubscribers does a select-all-and-loop # may want to create an index on (active, blocked, suspended_till)?