Suppose you want to get all the records whose name column is "apple" or "grape" in the fruits table.
Fruit.where(name:'Apple').or(Fruit.where(name:'Grape'))
I was able to get it.
Recommended Posts