I want to return an array with all rows in a table called bookings
where the column returned_date
is empty.
So far I've tried Booking.where("returned_date <> ''")
, which chose all the records where returned_date is present, but I want an inverse selection of this.
If you mean to get with returned_date
column be null
:
Booking.where(returned_date: nil)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With