1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-20 14:54:15 +01:00
fab-manager/app/models/ticket.rb
2020-03-25 12:35:09 +01:00

9 lines
263 B
Ruby

class Ticket < ApplicationRecord
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