EventSchedule validations
event, schedule, room and start_time are mandatory in EventSchedule.
This commit is contained in:
parent
354e15a76d
commit
0b26ed5c35
10 changed files with 26 additions and 15 deletions
|
|
@ -28,7 +28,7 @@ class Program < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def scheduled(schedule_id)
|
||||
joins(:event_schedules).where('event_schedules.schedule_id = ? AND event_schedules.start_time IS NOT NULL AND event_schedules.room_id IS NOT NULL', schedule_id)
|
||||
joins(:event_schedules).where('event_schedules.schedule_id = ?', schedule_id)
|
||||
end
|
||||
|
||||
def unscheduled(schedule_id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue