Added TicketScanning Model

This commit is contained in:
siddhantbajaj 2017-07-11 17:05:07 +05:30
parent 93d5e360ca
commit c066aadae2
4 changed files with 20 additions and 1 deletions

View file

@ -3,4 +3,5 @@ class PhysicalTicket < ActiveRecord::Base
has_one :ticket, through: :ticket_purchase
has_one :conference, through: :ticket_purchase
has_one :user, through: :ticket_purchase
has_many :ticket_scannings
end

View file

@ -0,0 +1,3 @@
class TicketScanning < ActiveRecord::Base
belongs_to :physical_ticket
end