From 82942ab4754fbea23c1eec58f3c27e340f2cdb97 Mon Sep 17 00:00:00 2001 From: baarkerlounger Date: Thu, 28 Oct 2021 17:58:22 +0100 Subject: [PATCH] Scope are auto created by enums --- app/models/case_log.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/models/case_log.rb b/app/models/case_log.rb index c9e417609..7c4e84dc7 100644 --- a/app/models/case_log.rb +++ b/app/models/case_log.rb @@ -165,10 +165,6 @@ class CaseLog < ApplicationRecord include Discard::Model include SoftValidations default_scope -> { kept } - scope :not_started, -> { where(status: "not_started") } - scope :in_progress, -> { where(status: "in_progress") } - scope :not_completed, -> { where.not(status: "completed") } - scope :completed, -> { where(status: "completed") } validate :instance_validations before_save :update_status!