add payment model and its associations

This commit is contained in:
Rishabh Saxena 2016-06-18 18:13:29 +05:30
parent e8f1645fc2
commit 36f2cf4373
3 changed files with 77 additions and 0 deletions

View file

@ -20,6 +20,7 @@ class Conference < ActiveRecord::Base
has_one :program, dependent: :destroy
has_one :venue, dependent: :destroy
has_many :ticket_purchases, dependent: :destroy
has_many :payments, dependent: :destroy
has_many :supporters, through: :ticket_purchases, source: :user
has_many :tickets, dependent: :destroy