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

diploma has many programs (dependent nullify)

parent 2160eee1
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ class Education::Diploma < ApplicationRecord
include WithGit
include WithSlug
has_many :programs
has_many :programs, dependent: :nullify
scope :ordered, -> { order(:level, :name) }
......
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