Commit 0431c313 authored by Alexandre Friquet's avatar Alexandre Friquet

Fixes crash on subscription deletion: refs #67.

parent e311c04b
......@@ -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