1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-24 07:39:39 +02:00
Maybe/app/models/rule.rb

8 lines
184 B
Ruby
Raw Normal View History

2025-02-25 11:34:37 -05:00
class Rule < ApplicationRecord
belongs_to :family
has_many :triggers, dependent: :destroy
has_many :actions, dependent: :destroy
validates :effective_date, presence: true
end