Remove redundant scopes

These scopes were already defined by the `enum :task` method.
This commit is contained in:
Javi Martín
2019-10-23 18:03:53 +02:00
parent b0d1d00916
commit 26e050b9f2

View File

@@ -10,8 +10,6 @@ class Poll
enum task: { vote_collection: 0, recount_scrutiny: 1 }
scope :vote_collection, -> { where(task: "vote_collection") }
scope :recount_scrutiny, -> { where(task: "recount_scrutiny") }
scope :current, -> { where(date: Date.current) }
before_create :persist_data