clarion/app/models/slot.rb

6 lines
211 B
Ruby
Raw Normal View History

2014-10-12 13:26:07 +03:00
class Slot < ActiveRecord::Base
belongs_to :hall
belongs_to :event, required: false
2024-10-03 23:24:41 +03:00
belongs_to :approved_event, -> { joins(:proposition).approved_joined }, class_name: 'Event', foreign_key: 'event_id'
2014-10-12 13:26:07 +03:00
end