Remove legacy geo sources

This commit is contained in:
Paul Chavard 2020-10-15 16:03:07 +02:00
parent 5abb07420b
commit cad8ee31d8
10 changed files with 10 additions and 81 deletions

View file

@ -35,16 +35,12 @@ class GeoArea < ApplicationRecord
]
enum source: {
quartier_prioritaire: 'quartier_prioritaire',
cadastre: 'cadastre',
parcelle_agricole: 'parcelle_agricole',
selection_utilisateur: 'selection_utilisateur'
}
scope :selections_utilisateur, -> { where(source: sources.fetch(:selection_utilisateur)) }
scope :quartiers_prioritaires, -> { where(source: sources.fetch(:quartier_prioritaire)) }
scope :cadastres, -> { where(source: sources.fetch(:cadastre)) }
scope :parcelles_agricoles, -> { where(source: sources.fetch(:parcelle_agricole)) }
def to_feature
{