Remove duplicated scope.
This commit is contained in:
parent
51ffbf1c1f
commit
7786c6c6f2
|
@ -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)?
|
||||
|
|
Loading…
Reference in New Issue