I want to do a query like this:
bookings = Booking.where(user_id: @current_user.id, start_at: date.to_datetime)
The problem in this case is, that I just get results in bookings which match a timestamp 00:00:00 which is quite logical.
Is there a possibility to format the start_at parameter in the query to date, so that I just compare two dates and not datetimes?