Skip to content
Snippets Groups Projects
Unverified Commit 41736d25 authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

dependent nullify on sub-headings

parent 58f37655
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,8 @@ class Communication::Block::Heading < ApplicationRecord
optional: true
has_many :children,
class_name: 'Communication::Block::Heading',
foreign_key: :parent_id
foreign_key: :parent_id,
dependent: :nullify
has_many :blocks,
dependent: :nullify
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment