I see in the Active Record docs, you can query for a date using a greater than / less than comparison. However, what if you want to select where date = Date.today or must I quer
For me just works like this:
@fisrt_payment_day = Invoice.where("DATE(date_first_payment) >= ?", Date.today - 1.day)