2021-01-20 13:46:11 +01:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2021-02-01 14:02:54 +01:00
|
|
|
class Condition < ApplicationRecord
|
|
|
|
belongs_to :filter
|
2021-01-22 14:50:56 +01:00
|
|
|
|
|
|
|
scope :enabled, -> { where(enabled: true) }
|
2021-02-04 13:27:41 +01:00
|
|
|
|
|
|
|
validates :property_type, presence: true
|
2021-01-20 13:46:11 +01:00
|
|
|
end
|