I am using Ruby on Rails 3.2.2 and, given I have stated all needed classes/models involved in this question, I would like to build the following SQL query statement (note the SQL OR
) "a là Ruby on Rails way":
SELECT customers.* FROM customers WHERE (firstname = 'James' OR firstname = 'Paula') AND lastname = 'Brown'
Is it possible by using Rails facilities?