Making PostgreSQL run on the first start of WSL 2 terminal

Making PostgreSQL run on the first start of WSL 2 terminal

My daily routine involves working with Ruby on Rails with PostgreSQL as a relational database service. Thus, I will be discussing about how to automate the start of PostgreSQL service on Windows Subsystem Linux (WSL) 2. The story I was excited about the release of...
RoR: Determining two date within the acceptable range

RoR: Determining two date within the acceptable range

There are two dates where the first date is greater or equal to (gteq) and the second date is less than or equal to (lteq). Both dates set to have a rule where it must be within 3 months range. As always, there are always many ways to determine the range of between...