Please describe the problem to be solved
Currently, when a user is banned, the ban is not automatically over, because there is no logic applied to the ends_at field.
(Optional): Suggest a solution
- Add cron job that runs every day at 23:59 to set banned = false in User model.
- Additionally, set ban date to end of day {CURRENT_DATE} + 7.days.end_of_day, instead of {CURRENT_DATE} + 7.days.
Please describe the problem to be solved
Currently, when a user is banned, the ban is not automatically over, because there is no logic applied to the
ends_atfield.(Optional): Suggest a solution