Fix HasManyThroughOrderErrors

This commit is contained in:
Henne Vogelsang 2022-02-11 16:49:42 +01:00
parent e15fedd9b0
commit 5c5374252c
No known key found for this signature in database
GPG key ID: 97DDB66BDAF8D4D6
2 changed files with 9 additions and 7 deletions

View file

@ -28,8 +28,8 @@ class Conference < ApplicationRecord
delegate :city, :country_name, to: :venue, allow_nil: true
delegate :name, :street, to: :venue, prefix: true, allow_nil: true
has_many :physical_tickets, through: :ticket_purchases
has_many :ticket_purchases, dependent: :destroy
has_many :physical_tickets, through: :ticket_purchases
has_many :payments, dependent: :destroy
has_many :supporters, through: :ticket_purchases, source: :user
has_many :tickets, dependent: :destroy