You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: schedule.rb
    path of file: ./repos/brimir/app/models
    
    the code of the file until where you have to start completion: class Schedule < ApplicationRecord

  has_one :user, dependent: :destroy

  def is_during_work?(time_in_zone_for_user)
    user_wda
    
  def is_during_work?(time_in_zone_for_user)
    user_wday = time_in_zone_for_user.wday
    user_hour = time_in_zone_for_user.hour
    return false unless is_on_day?(user_wday)
    if user_hour <= self.end.hour && user_hour >= self.start.hour
      # if true we need to check minutes
      if user_hour == self.end.hour 
        return false if time_in_zone_for_user.min > 0
      end