1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-29 10:09:39 +02:00
Maybe/app/models/rule.rb
2025-04-02 08:10:35 -04:00

7 lines
184 B
Ruby

class Rule < ApplicationRecord
belongs_to :family
has_many :triggers, dependent: :destroy
has_many :actions, dependent: :destroy
validates :effective_date, presence: true
end