1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00
fab-manager/app/models/ticket.rb
2016-08-29 15:43:47 +02:00

9 lines
264 B
Ruby

class Ticket < ActiveRecord::Base
belongs_to :reservation
belongs_to :event_price_category
validates :event_price_category_id, presence: true
validates :booked, presence: true
validates :booked, numericality: { only_integer: true, greater_than: 0 }
end