mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
parent
87b1aba1e9
commit
799fd0c3a4
19 changed files with 65 additions and 66 deletions
|
|
@ -1,6 +1,6 @@
|
|||
class Ticket < ActiveRecord::Base
|
||||
belongs_to :conference
|
||||
has_many :ticket_purchases
|
||||
has_many :ticket_purchases, dependent: :destroy
|
||||
has_many :buyers, -> { distinct }, through: :ticket_purchases, source: :user
|
||||
|
||||
attr_accessible :conference, :title, :url, :description, :conference_id, :price_cents, :price_currency, :price
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue