Une condition doit avoir un "property_type"
This commit is contained in:
parent
53fa80431a
commit
f11203ee3c
|
@ -4,4 +4,6 @@ class Condition < ApplicationRecord
|
|||
belongs_to :filter
|
||||
|
||||
scope :enabled, -> { where(enabled: true) }
|
||||
|
||||
validates :property_type, presence: true
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue