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

9 lines
264 B
Ruby
Raw Normal View History

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