Commit 06d7016a authored by David F.'s avatar David F.

Merge branch '67-crash-on-subcription-deletion' into 'master'

Resolve "Crash à la suppression d'une adhésion"

See merge request !71
parents e311c04b 0431c313
......@@ -2,7 +2,7 @@ class Subscription < ApplicationRecord
belongs_to :member
belongs_to :adherent, dependent: :destroy
accepts_nested_attributes_for :adherent
has_many :performance_subscriptions
has_many :performance_subscriptions, dependent: :destroy
has_many :performances, through: :performance_subscriptions
after_create :set_platform_number
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment