mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-05 16:24:21 +01:00
9 lines
264 B
Ruby
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
|