app/repositories/hearing_repository.rb
# Returns a where clause that can be used to find all hearings that occur within
# a given timeframe (in days).
#
# @note Requires a join with the `hearing_days` table.
Returns a where clause that can be used to find all hearings that occur within
a given timeframe (in days).
Returns a where clause that can be used to find all hearings that occur within a given timeframe ( in days ) .
def scheduled_within_sixty_days
      <<-SQL
        DATE_PART(
        'day',
        hearing_days.scheduled_for::timestamp - '#{Time.zone.today}'::timestamp
        ) BETWEEN 1 AND 60
      SQL
    end
def scheduled_within_sixty_days <<-SQL 
        DATE_PART(
        'day',
        hearing_days.scheduled_for::timestamp - ' #{ Time . zone . today } '::timestamp
        ) BETWEEN 1 AND 60
       SQL end
Returns a where clause that can be used to find all hearings that occur within
a given timeframe (in days).
Returns a where clause that can be used to find all hearings that occur within a given timeframe ( in days ) .
note
Requires a join with the `hearing_days` table.
Requires a join with the ` hearing_days ` table .