Merge pull request #10825 from mfo/US/drop-other-unused-indices
amelioration ETQ tech/ops, on souhaite ne pas avoir d'index non utilisé (et plus maintenu) - bis
This commit is contained in:
commit
b9f9255e32
4 changed files with 9 additions and 4 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
class Traitement < ApplicationRecord
|
||||
belongs_to :dossier, optional: false
|
||||
|
||||
self.ignored_columns += [:process_expired, :process_expired_migrated]
|
||||
scope :en_construction, -> { where(state: Dossier.states.fetch(:en_construction)) }
|
||||
scope :en_instruction, -> { where(state: Dossier.states.fetch(:en_instruction)) }
|
||||
scope :termine, -> { where(state: Dossier::TERMINE) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue