mirror of
https://github.com/Evolix/chexpire.git
synced 2024-06-06 01:24:29 +02:00
Check dependant destory on CheckLogs
This commit is contained in:
parent
917869925a
commit
386523e6bf
|
@ -30,7 +30,7 @@ class Check < ApplicationRecord
|
|||
ERROR_DELAY_DAYS = 3
|
||||
|
||||
belongs_to :user
|
||||
has_many :logs, class_name: "CheckLog"
|
||||
has_many :logs, class_name: "CheckLog", dependent: :destroy
|
||||
has_many :notifications, validate: true, dependent: :destroy
|
||||
accepts_nested_attributes_for :notifications,
|
||||
allow_destroy: true,
|
||||
|
|
Loading…
Reference in a new issue