EvoBal/app/models/condition.rb

10 lines
183 B
Ruby
Raw Normal View History

2021-01-20 13:46:11 +01:00
# frozen_string_literal: true
class Condition < ApplicationRecord
belongs_to :filter
scope :enabled, -> { where(enabled: true) }
validates :property_type, presence: true
2021-01-20 13:46:11 +01:00
end